Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
619 views
in Technique[技术] by (71.8m points)

.net - the breakpoint will not currently be hit no symbols loaded

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. install .NET 2.0 SDK on the customer's machine (to get the DbgCLR.exe)
  2. copy the symbol file AAA.pdb to the same directory with AAA.dll
  3. get the source file for AAA.dll

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

  1. Tools->Attach to Process, then I choose w3wp.exe
  2. File->Open->File open the source file and add a breakpoint in the function which will be callled

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.

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...