可以从命令行使用Visual Studio调试器吗?

huangapple go评论54阅读模式
英文:

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

问题

我是C++的初学者,我使用NeoVim作为我的编辑器。我使用MSVC++构建工具来编译我的程序。但是当涉及到调试时,我不想为了调试而打开Visual Studio。有没有办法可以在命令行中使用Visual Studio调试器来调试我的程序?由于GDB是与g++一起提供的调试器,那么MSVC构建工具是使用哪个调试器?

我尝试阅读Visual Studio的文档,但找不到解决方案。

英文:

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.

答案1

得分: 0

devenv /DebugExe ProgramName.exe [ProgramArgs]

英文:

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

huangapple
  • 本文由 发表于 2023年5月21日 17:48:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76299257.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定