简体   繁体   English

在未安装Visual Studio的Windows XP计算机上运行的远程调试代码

[英]Remote Debugging code running on a Windows XP machine without Visual Studio installed

I want to remote debug an executable that is running on a Windows XP machine. 我想远程调试Windows XP计算机上运行的可执行文件。 This machine does not have Visual Studio installed. 这台机器没有安装Visual Studio。 I am running Visual Studio .NET from another machine on the network. 我正在从网络上的另一台计算机运行Visual Studio .NET。 (I'm easily able to remotely debug other XP machines which have Visual Studio .NET installed). (我可以很容易地远程调试其他装有Visual Studio .NET的XP机器)。

I located the remote debugging tool ( msvsmon.exe in this case) copied the folder to a local directory on the machine I wish to debug and ran it. 我找到了远程调试工具(在这种情况下为msvsmon.exe )将文件夹复制到了要调试并运行它的计算机上的本地目录中。 The cmd window indicated that I was running "Visual C++ Remote Debug Monitor (x86) Version 7.00.96" cmd窗口指示我正在运行“ Visual C ++远程调试监视器(x86)版本7.00.96”

I attempt to select the machine from VS in order to attach to the process and I received an error: 我尝试从VS中选择机器以附加到进程,但收到错误消息:

Unable to connect to the machine . 无法连接到机器。 The debugger is not properly installed. 调试器未正确安装。 Run setup to install or repair the debugger. 运行安装程序以安装或修复调试器。

As I'm not able to find debugging tools online that are old enough, I'm not sure how to proceed. 由于无法在线找到足够老的调试工具,因此我不确定该如何进行。

While there is still time, you should get a copy of VS2010 Service Patch 2, and install it, the version of msvsmon.exe in VS2010 is the LAST release which supports XP remote debugging. 虽然时间还很充裕,但您应该获得VS2010 Service Patch 2的副本并进行安装,VS2010中msvsmon.exe的版本是支持XP远程调试的最新版本。 In my work we develop for XP Embedded, and have a large installed base used in manufacturing globally. 在我的工作中,我们为XP Embedded开发,并拥有在全球范围内广泛使用的安装基础。 Our customers would scream bloody murder if we changed the runtime which would break/damage/shutdown manufacturing. 如果我们更改运行时间(会破坏/损坏/关闭制造),我们的客户会大喊血腥的谋杀案。 So we are now forced to migrate to VS2019 and yet we build for XP clients. 因此,我们现在不得不迁移到VS2019,但我们还是为XP客户端构建的。 Our new products do run newer Windows Embedded versions, but the legacy products are still in demand, and are XP embedded based. 我们的新产品确实运行较新的Windows Embedded版本,但仍需要传统产品,并且这些产品基于XP嵌入式。 There is no remote debug capability to my knowledge with VS2019, and our firm is not allowed to distribute VS2010 to our clients so they can single step debug. 据我所知,VS2019没有远程调试功能,并且我们公司不允许将VS2010分发给我们的客户,以便他们可以单步调试。 Very frustrating. 非常沮丧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM