开发者

Visual Studio 2010 remote debugging: Debugging symbols are not loaded for this document

This is a weird problem, which luckily (?) also happens on other machines.

I've never had problems with debugging, and now I have: it shows an exclamation mark at my breakpoints which says :'The debugging symbols are not loaded for this document'.

The difference with other projects is that I run this web application in IIS:

  • I've created a new website in IIS 7.5 (win7), listening on port 80 to local.comparer.nl
  • I've added the url local.comparer.nl to my hosts file, redirecting it to 127.0.0.1
  • I've edited the start page of the project (asp.net 3.5) to local.comparer.nl in 'use local IIS webserver'

When I start the site, it first says 'unable to start remote debugging'. I don't know why it looks for remote debugging, but when I started the remote de开发者_运维知识库bugging monitor, it still didn't work.

When I unloaded the debugging monitor, it didn't complain about the remote debugging anymore, but the exclamation mark still was there.

Solutions which -sometimes- help at my colleagues pc's:

  • Delete everything from the \bin directory and rebuild
  • Rebuild again (n number of times)
  • Choose 'clean solution'

Any idea?


Are you building full debugging symbols? If not then the debugger has no information to relate the source code to the in memory activity under the debugger. This is set in the project properties per configuration.

Also ensure the symbols are in the bin folder.

You can validate that VS is loading the right symbols with the Debug | Modules window.


I had this issue bothering me for quite long. Finally, what resolved my problem is :-

1) Make Internet Explorer the default browser 2) Clean the solution 3) Build the solution


In my case I renamed an asp.net page and disconnected the code behind. Strange it still ran but did not run the code behind and therefore did not hit breakpoints in it.


You have to in Visual Studio 2010

  1. Select "Build" Meanu > Clean [Project/Solution Name]

  2. Rebuild [Project/Solution]

Try debug again... Good luck

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜