Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Troubles remote debugging a .Net Application "no symbols have been loaded for this document."

I am trying to debug a .Net application. I copied it (and the .pdb) to a VM. I am able to attach to the process, but my breakpoints are disabled after attach with:

"The break point currently will not be hit , no symbols have been loaded for this document."

I am sure the PDB on the VM is the right one. I tried adding the PDB path on my main machine to visual studio's symbols path. what am I missing?

(Win7 x86, Visual studio 10, .Net 4)

Thanks

like image 310
OSH Avatar asked Jan 25 '12 15:01

OSH


People also ask

How do I fix No symbols have been loaded for this document?

"No Symbols have been loaded for this document"Go to the Modules window (Debug > Windows > Modules) and check whether your module is loaded. If your module is loaded, check the Symbol Status column to see whether symbols have been loaded.

How do I add symbols to remote debugging?

Go to Tools > Options > debugging > Symbols. Add a new Symbol file location for your build server. Make it point to the bin folder of the project you want to debug. If you have multiple projects you want to debug, add each of their bin folders.

How do I Debug a .NET application?

Press F5 to run the program in Debug mode. Another way to start debugging is by choosing Debug > Start Debugging from the menu. Enter a string in the console window when the program prompts for a name, and then press Enter . Program execution stops when it reaches the breakpoint and before the Console.


1 Answers

The problem was that the PDB files have to be placed at the same folder both on the VM and the host.

like image 63
OSH Avatar answered Oct 04 '22 13:10

OSH