Search code examples
c++visual-c++command-linevisual-studio-debuggingneovim

Is it possible to use the Visual Studio debugger from command line?


Im a beginner in C++ and I use NeoVim as my editor. I use MSVC++ build tools for compiling my programs. But when it comes to debugging, I don't want to open Visual Studio just for debugging. Is there any way I can debug my program from command line using visual studio debugger? Since GDB is the debugger that comes with g++, which debugger comes with msvc build tools?

I tried reading the visual studio documentations, but couldn't find the solution.


Solution

  • Command line: devenv /DebugExe ProgramName.exe [ProgramArgs]