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
"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.
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.
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.
The problem was that the PDB files have to be placed at the same folder both on the VM and the host.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With