I hav my execuatable produced by command line building.
我有我的可执行文件由命令行构建。
I want to debug it in command line itself as like as gdb does in linux.
我想在命令行中调试它,就像在linux中的gdb一样。
Also i want run my program in Visual studio GUI from command line options..
另外,我想从命令行选项在Visual Studio GUI中运行我的程序..
How can i do that?
我怎样才能做到这一点?
2 个解决方案
#1
Make sure it is compiled in the debug version. Run the program. Then "Attach to Process" from VS tools menu.
确保它是在调试版本中编译的。运行程序。然后从VS工具菜单中“附加到进程”。
You can also specify the runtime options when running the debugger (it's in the project properties).
您还可以在运行调试器时指定运行时选项(它位于项目属性中)。
#2
I don't think that VS has a pure command line mode, but you could use CDB/NTSD.
我不认为VS有纯命令行模式,但你可以使用CDB / NTSD。
http://msdn.microsoft.com/en-us/library/cc266320.aspx
It is what lots of developers at MS do.
这是MS的许多开发人员所做的事情。
#1
Make sure it is compiled in the debug version. Run the program. Then "Attach to Process" from VS tools menu.
确保它是在调试版本中编译的。运行程序。然后从VS工具菜单中“附加到进程”。
You can also specify the runtime options when running the debugger (it's in the project properties).
您还可以在运行调试器时指定运行时选项(它位于项目属性中)。
#2
I don't think that VS has a pure command line mode, but you could use CDB/NTSD.
我不认为VS有纯命令行模式,但你可以使用CDB / NTSD。
http://msdn.microsoft.com/en-us/library/cc266320.aspx
It is what lots of developers at MS do.
这是MS的许多开发人员所做的事情。