开发者

Problem with VS debugger

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜