为什么远程调试时没有加载符号? [英] Why are no Symbols loaded when remote debugging?

查看:57
本文介绍了为什么远程调试时没有加载符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用远程调试.我要调试的程序在机器 b 上运行.Visual Studio 在机器 a 上运行.

I want to use remote debugging. The program that I want to debug runs on machine b. Visual Studio runs on machine a.

在机器 b 上,我有一个包含以下文件的文件夹:

On machine b I have a folder with the following files:

  • msvcr72.dll
  • msvsmon.exe
  • NatDbgDE.dll
  • NatDbgDEUI.dll
  • NatDbgEE.dll
  • NatDbgEEUI.dll

如果您认为某些文件丢失,您能否也描述一下它们通常位于何处?

If you think some files are missing, could you also describe where they are usually located?

在下一步中,我在机器 b 上启动了 msvsmon.exe 和我的程序.在机器 a 上,我启动了 Visual Studio 2008 和我编写程序的解决方案.然后我选择调试 - 附加到进程".我选择了远程传输(仅限本机,无身份验证)".我使用了正确的 IP 作为限定符并采用了正确的进程 (program.exe).过了一会儿,弹出窗口中出现以下消息:

In the next step I started the msvsmon.exe and my program on machine b. On machine a, I started Visual Studio 2008 and my solution in which the program was written. Then I choose "Debug - Attach to Process". I chose "Remote Transport (Native Only with no authentication)". I used the correct IP as a qualifier and took the right process (program.exe). After a while the following message occurred in a popup-window:

program.exe 中 0x7c812a7b 处未处理的异常:0xE0434F4D:0xe0434f4d

Unhandled exception at 0x7c812a7b in program.exe: 0xE0434F4D: 0xe0434f4d

我可以继续或中断;继续时,异常一次又一次地发生.所以我按下了 break 并出现了以下消息:

I can continue or break; When continuing, the exception occurs again and again and again. So I pressed break and the following message occurred:

没有为任何调用堆栈帧加载符号.无法显示源代码.

No symbols are loaded for any call stack frame. The source code cannot be displayed.

推荐答案

确保将随程序集生成的 .PDB 文件复制到远程计算机上的同一文件夹中.这将允许调试器拾取调试符号.

Make sure you copy the .PDB file that is generated with your assembly into the same folder on the remote machine. This will allow the debugger to pickup the debug symbols.

这篇关于为什么远程调试时没有加载符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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