3

I am dealing with a puzzling situation here,and need any help I can get . I am using Visual Studio 2008 and have a dev site running on IIS. When I Attach to the process running in IIS, it attaches successfully(no errors). However when I attempt to debug, nothing happens. I have closed out my browser, done a restart on the application pool, and website, cleared cache, and even forced a rebuild in visual studio. Still I am unable to step into code. Any idea what I could have wrong here?

The breakpoint will not currently be hit. No symbols have been loaded for this document.

Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
  • Where have you set your breakpoint? – Thom Jun 14 '11 at 21:54
  • Are your breakpoints solid red dots or an outline? Does it give a message when you hover over the breakpoints? ("No symbols have been loaded...") – Brandon Jun 14 '11 at 21:56
  • Ok . . . no, I do see the message in bold when I hover over the breakpoints – Kobojunkie Jun 14 '11 at 22:16
  • I also faced such error and try many solutions but below solution works for me best : its due to different framework version when you try to attach process. For more details, please visit: http://stackoverflow.com/a/13106908/1218422 – Bhaumik Patel Oct 28 '12 at 07:09

3 Answers3

1

Your symbols might be wrong or missing. In extra rare circumstances you might need to step inside the function via assembly, only then VS picks up that you're actually calling your component.

Coder
  • 3,695
  • 7
  • 27
  • 42
  • Also, check in modules window that the module you want to debug has symbols loaded. – Coder Jun 14 '11 at 22:07
  • 1
    I notice the pop up message " . . .No symbols have been loaded for this document." when I hover over the break point. How do I fix this? – Kobojunkie Jun 14 '11 at 22:13
1

Check if you have you set compilation debug=”true” in you web.config file?

matrix
  • 3,000
  • 3
  • 24
  • 35
  • Also check if deployment element in your machine.config is set to false. The value if set to true, disables debugging and certain other settings. [msdn link](http://msdn.microsoft.com/en-US/library/ms228298%28VS.80%29.aspx) – matrix Jun 15 '11 at 11:00
  • I just searched the machine.config, and their is no deployment element in there. How do I go about adding one of these and is it safe? – Kobojunkie Jun 15 '11 at 23:05
  • Also, yes, my web.config compilation debug is set to true – Kobojunkie Jun 15 '11 at 23:27
  • @Kobojunkie, this [MSDN link](http://msdn.microsoft.com/en-US/library/ms228298%28VS.80%29.aspx) explains how to add deployment element in machine.config. Regarding safety, you should revert it back after debugging. – matrix Jun 20 '11 at 09:24
0

I believe you need to debug the website from within Visual Studio in order for breakpoints to be hit. Use the green "play" button, or use F5, or just go to Debug > Start Debugging.

WEFX
  • 8,298
  • 8
  • 66
  • 102