3
votes

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.

3
Where have you set your breakpoint? - Thom
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
Ok . . . no, I do see the message in bold when I hover over the breakpoints - Kobojunkie
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: stackoverflow.com/a/13106908/1218422 - Bhaumik Patel

3 Answers

1
votes

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.

1
votes

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

0
votes

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.