Visual Studio命令窗口 - 附加到远程进程? [英] Visual Studio Command Window - Attach To Remote Process?

查看:279
本文介绍了Visual Studio命令窗口 - 附加到远程进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用命令窗口命令附加到远程进程? (这对于远程调试非常讨厌每次滚动对话框步骤。)

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命令窗口 - 附加到远程进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆