c# - Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document." -
c# desktop application on express edition. worked didn't work 5 seconds later.
i tried following.
- ensure debug configuration, debug flag, , full debug info set on assemblies.
- delete bin , obj folders , dlls related project entire machine.
- recreate projects causing problem scratch.
- reboot.
i have 2 winforms projects in solution. 1 of them loads debug info, 1 doesn't. both refer assembly i'm trying debug info on in same way in project file. ideas?
i want add in here, myself when come review question, symbols not loaded until assembly loaded, , assembly not loaded until needed. if breakpoint in library used in 1 function in main assembly, symbols not loaded (and show breakpoint not being hit) until function called.
start debugging, you've arrived @ breakpoint or used debug > break all
, use debug > windows > modules
. you'll see list of assemblies loaded process. locate 1 want debug info for. right-click , select symbol load information. you'll dialog lists directories looked .pdb file assembly. verify list against actual .pdb location. make sure doesn't find old one.
in normal projects, assembly , .pdb file should have been copied ide same folder .exe. bin\debug folder of project. make sure remove 1 gac if you've been playing it.
Comments
Post a Comment