当前不会命中断点 未加载符号 [英] the breakpoint will not currently be hit no symbols loaded

查看:39
本文介绍了当前不会命中断点 未加载符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在客户的机器 (Windows Server 2003) 上调试以跟踪问题,并且产品基于 .NET 2.0.我想用DbgCLR.exe调试一个文件AAA.dll,我做的是:

I want to debug on the customer's machine (Windows Server 2003) to track a problem, and out product is based on .NET 2.0. I want to use DbgCLR.exe to debug a file AAA.dll, what I did is:

  1. 在客户的机器上安装 .NET 2.0 SDK(以获取 DbgCLR.exe)
  2. 将符号文件AAA.pdb复制到AAA.dll所在目录
  3. 获取 AAA.dll 的源文件

AAA.dll 将由 w3wp.exe 加载,因此在 DbgCLR 中

the AAA.dll will be loaded by w3wp.exe, so in the DbgCLR

  1. Tools->Attach to Process,然后我选择w3wp.exe
  2. File->Open->File 打开源文件并在要调用的函数中添加断点

但是断点似乎不起作用,因为它上面有一个警告图标并说:当前不会命中断点.尚未为此文档加载任何符号.

but the breakpoint seems do no work because there is an warning icon on it and says : the breakpoint will not currently be hit. No symbols have been loaded for this document.

在我的计算机 (Windows XP) 上,我的计算机 (Windows XP) 具有整个源代码的调试版本,我做了与上面几乎相同的事情,但不同的是:我附上了 aspnet_wp.exe 进行调试,它可以工作

On my computer (Windows XP) which has the debug version of whole source code, I did nearly the same thing as above but the different is: I attached aspnet_wp.exe to do the debug and it works

我应该怎么做才能让它在客户的机器上运行?

What should I do to let it work on the customer's machine?

推荐答案

转到调试/Windows/模块.找到 AAA.dll,右键单击并选择加载符号.

Go to Debug / Windows / Modules. Find the AAA.dll, right click and select Load Symbols.

此外,您可能需要在工具/选项/调试中禁用 JustMyCode.

Also, you may need to disable JustMyCode in Tools / Options / Debugging.

这篇关于当前不会命中断点 未加载符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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