Question

J'essaie de déboguer un programme dans Visual Studio 10, mais j'ai un problème avec les points d'arrêt.J'ai mis les fichiers * .pdb correspondant aux fichiers * .dll dans le même répertoire.Mais en vérifiant les modules, je vois que chaque fichier DLL est signé en tant que Cannot find or open the PDB file.

Comment puis-je résoudre ce problème?Comment puis-je vérifier où les fichiers * .pdb sont censés se trouver?

Était-ce utile?

La solution

The modules (Ctrl-D, M) is a good place to sort out whats going on so you're in the right area.

Right-click the module/dll you expected the pdb to be found for and select Symbol Load Information

It should look in the same directory as your dll to begin with and if it finds the pdb will either load it or tell you that the pdb file doesnt match the dll.

Autres conseils

Go to Debug -> Options and Settings -> Debugging -> Symbols, check Microsoft Symbol Servers under Symbol Locations. See attached photo.

Include Symbols

I had a similar problem in VS2013 ... something to do with a PDB file and IISEXPRESS. I tried several things and eventually resolved it by doing this:

Tools > Options > Debugging > Symbols and then pressing the "Empty Symbol Cache" button

Upon rerunning my app, it took awhile for Visual Studio to reload all of the symbols but it did eventually do so and the problem was fixed!

In my case, I was debugging a click-once windows app. In the module's Symbol Load Information, it told me the pdb was out of sync with the currently attached image. I had to review the whole list not just the top or bottom item, to get that error text.

That told me to recompile and re-publish what I was attaching to, so the two would match. That caused the module list to say Symbols loaded for my assembly that I was debugging, and to go on and continue debugging the issue.

Change Project Directory like if you run/debug code in Windows system directory it wont execute with admin permission,

in my case i save my project in C: drive and while i execute code i throw access violation to read input data error then i try it from different location and it work fine

& also you have to load module as well

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top