3

Hi I read this Question about using VS code to compile C++ console app but how to use VSCode to debug C++ application console app?

Community
  • 1
  • 1
  • Put breakpoints and run it in your debugger - hit F5! – Andrew Komiagin Oct 30 '15 at 13:43
  • @AndrewKomiagin I think you talk about Visua Studio - Not about Visual Studio Code, don't you? – Wosi Oct 30 '15 at 13:51
  • Right, the Visual Studio Code is just code editor. So go ahead and download and use complete IDE - Visual Studio Community Edition. Its absolutely free. So you'll be able to use proper tool for C++. – Andrew Komiagin Oct 30 '15 at 13:53
  • @AndrewKomiagin No I'm talking about VS Code. if you see link http://stackoverflow.com/questions/30269449/how-do-i-set-up-vscode-to-compile-c-code you can use VS code to compile C/C++ with Makefile –  Oct 30 '15 at 14:11
  • 1
    As already stated: You **can compile** applications from within VSCode. But you **cannot debug** them. You need to take a real IDE like Visual Studio for debugging purpose. – Wosi Oct 30 '15 at 14:17
  • 1
    @am411998 _"you can use VS code to compile C/C++ with Makefile"_ sure, you could have written the code with notepad and compile with a Makefile, that doesn't mean you can debug it using notepad. – πάντα ῥεῖ Oct 30 '15 at 14:18

2 Answers2

4

VSCode now supports C++ debugging with an optional extension.

Mitsos101
  • 551
  • 3
  • 15
0

You can't currently debug a C++ application in Visual Studio Code.

Wosi
  • 41,986
  • 17
  • 75
  • 82