我想知道是否可以使用命令窗口命令附加到远程进程? (这对于远程调试非常讨厌每次滚动对话框步骤。)
I was wondering if it is possible to use the command window commands to attach to a remote process? (It gets very annoying for remote debugging to roll through the dialog steps every time.)
推荐答案我不认为有方法来做你想要的从命令行。但是您应该能够消除至少一些对话框步骤。
I don't think there's any way to do what you want from the command line. But you should be able to eliminate at least some of the dialog steps.
例如,对于C ++,在项目属性中找到调试选项卡,并更改调试器启动更改为远程Windows调试程序。现在将Remote Command更改为要附加到的进程的名称,将远程服务器名称更改为相关主机名,并将Attach更改为yes。
For example, for C++, in the Project Properties find the Debugging Tab and change "Debugger to launch" to "Remote Windows Debugger". Now change Remote Command to the name of the process you want to attach to, change Remote Server Name to the relevant host name and change Attach to 'yes'. You can also set other properties as desired.
按F5(或调试|开始),您应该最终附加到您在识别的远程服务器上识别的进程。
Press F5 (or Debug | Start) and you should end up attached to the process you identified on the remote server you identified.
更多推荐
Visual Studio命令窗口
发布评论