英文:
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]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论