Visual Studio命令窗口

编程入门 行业动态 更新时间:2024-10-11 21:25:35
本文介绍了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命令窗口

本文发布于:2023-06-02 00:48:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/430939.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   窗口   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!