简体   繁体   English

.net 使用 Visual Studio 进行远程调试 — “找不到路径。”

[英].net Remote Debugging with Visual Studio — “Can't find path.”

My setup is:我的设置是:

Debugging computer:调试电脑:

  • Visual Studio 2008 Professional Visual Studio 2008 专业版
  • Domain access域访问

Application-running computer:运行应用程序的计算机:

  • MSVSMon.exe MSVSMon.exe
  • Workgroup only仅限工作组

Both computers:两台电脑:

  • Windows XP pro Windows XP pro
  • Same local username and password相同的本地用户名和密码
  • Access to same workgroup访问同一工作组

I log into the same local username and password on both computers (username == "debugger"), and point VS 2008 to the remote computer, "Robot," under Project Properties > Use Remote Machine, and instruct VS to debug.我在两台计算机上登录相同的本地用户名和密码(用户名 ==“调试器”),并将 VS 2008 指向远程计算机“机器人”,在“项目属性”>“使用远程机器”下,并指示 VS 进行调试。 In short, I followed the directions here and here .简而言之,我按照此处此处的指示进行操作。 A ten second hang ensues then an error:十秒钟的挂起随后出现错误:

Error while trying to run project: Unable to start program '......\prog.exe'.尝试运行项目时出错:无法启动程序 '......\prog.exe'。

The system cannot find the path specified.该系统找不到指定的路径。

A few extra notes:一些额外的注意事项:

  • I tried "run an external program" pointing to the output of the project to no avail.我尝试“运行外部程序”指向项目的 output 无济于事。
  • I'm not trying to debug an ASP.Net application.我不是在尝试调试 ASP.Net 应用程序。
  • The project source is on the local computer.项目源位于本地计算机上。

Please let me know if you have any solutions or leads.如果您有任何解决方案或线索,请告诉我。 Thanks.谢谢。

Make the executable and debug symbols accessible to both computers: in a shared or shareable directory.使两台计算机都可以访问可执行和调试符号:在共享或可共享目录中。 Make the debugging computer's project "start an external program" being the shared directory from the point of view of the application-running computer.从运行应用程序的计算机的角度来看,使调试计算机的项目“启动外部程序”成为共享目录。

EDIT编辑

Also, be sure that you are careful that you run the correct build.此外,请确保您小心运行正确的构建。 Don't run the Debug build remotely if the debug framework isn't installed on the remote machine!如果远程计算机上未安装调试框架,请勿远程运行调试构建!

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

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