0

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.

Ishida
  • 3
  • 3
  • See [WinDbg](https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools). Also on the same page _"...There are four command line debuggers that are available for specialized environments and for those that prefer a command line interface..."_. Also in my opinion the MSVS debugger is an order of magnitude easier to use than any of the command line tools. – Richard Critten May 21 '23 at 10:08
  • How about LLDB? Hot take: the only good thing about VS is the IDE, if you don't use it, I would move away from their tools: MSVC (in favor of Clang or GCC), debugger (in favor of LLDB or GDB), and perhaps even STL (in favor of libstdc++ or libc++). – HolyBlackCat May 21 '23 at 10:20
  • Is WinDbg the debugger visual studio uses? Or visual studio has its own debugger? If yes, then what is its filename and does it support command line interface? – Ishida May 21 '23 at 10:38
  • yes [Headless debugging on Windows](https://stackoverflow.com/q/59978054/995714) – phuclv May 21 '23 at 10:58

1 Answers1

0

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

Ddd
  • 16
  • 1
  • 1