简体   繁体   中英

How to debug C++/C programs on VsCode

I am using the gcc/g++ compiler using msys64 and mingw64 with VsCode. I've attached the bash.exe of mingw64 to my VsCode terminal. I can run my programs on the bash terminal using g++ file_name.cpp &&./a.exe . But how do I debug my programs?

Actually debugging in VScode is a bit tricky. Have you followed the methods here-

https://code.visualstudio.com/docs/cpp/cpp-debug

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM