[C] Breakpoints not work #695
-
There is my settings about VSC and LLDB. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 18 replies
-
Sorry, I've no idea. Not even sure which compiler you are using there, GCC or clang. When I'm testing targets compiled with MinGW-w64 GCC, it it seems to work. |
Beta Was this translation helpful? Give feedback.
-
I can't imagine that people in the world would have the same question as mine... The only difference is that I learned C but you learned Cpp... |
Beta Was this translation helpful? Give feedback.
-
Over. #695 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
I use MSYS2 to install clang, and had the same problem,probably because the llvm14.0. |
Beta Was this translation helpful? Give feedback.
-
In summary, here are two ways to solve this problem. (VSCode couldn't debug the file you want)No.1 Use the LLVM-MinGW64 toolkit that someone has bulit before, and reinstall LLVM (or build llvm project by yourself) to the same folder where you realease the LLVM-MinGW64 before. (If confilct, cover it.)Here is the detailed tutorial #695 (reply in thread)If you download the archive from winlibs.com with UCRT toolkits or versions fllowing, there is no neeed to use "--target=" arg.And https://github.com/brechtsanders/winlibs_mingw/releases is the same as winlibs.comIf you don't need to debug and just need to compile the file, there is no need to do the things above. Just download the archive, release it to a folder and add it to Path.No.2 Use with MVSC toolkits (Official support and no need for MinGW64, NO NEED TO TRY AGAIN AND AGAIN !!! ). |
Beta Was this translation helpful? Give feedback.
In summary, here are two ways to solve this problem. (VSCode couldn't debug the file you want)
No.1 Use the LLVM-MinGW64 toolkit that someone has bulit before, and reinstall LLVM (or build llvm project by yourself) to the same folder where you realease the LLVM-MinGW64 before. (If confilct, cover it.)
Here is the detailed tutorial #695 (reply in thread)
If you download the archive from winlibs.com with UCRT toolkits or versions fllowing, there is no neeed to use "--target=" arg.
And https://github.com/brechtsanders/winlibs_mingw/releases is the same as winlibs.com
If you don't need to debug and just need to compile the file, there is no need to do the things above. Just download the archi…