开发者

Problem with VS debugger

开发者 https://www.devze.com 2022-12-29 06:12 出处:网络
My debugger does not work when I start project in debug mode. But when I set checkbox Allow the source code to different from the original version.

My debugger does not work when I start project in debug mode. But when I set checkbox

Allow the source code to different from the original version.

Debugger works. But solution not wokrs properly. For example for files with build action "Content" and Copy to outputDirectory to "Copy if newer" does not copy to bin/Debug

Is anybody know the开发者_如何学JAVA solution?

alt text http://www.freeimagehosting.net/uploads/cbfef47aa8.jpg


As the checkbox suggests, if you have it on, the debugger tries to work even if what you are debugging (the exe/dll) doesn't match your source code. Normally it should be off, otherwise you can get all sorts of spurious problems. So you should try to find out why they don't match.

The debugger uses debug database files (the .pdb) to match source code and executable code. Perhaps your .pdb got messed up or is in the wrong path? Try cleaning the output and intermediate directories (normally bin and obj). Perhaps also something else in your build is strange.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号