Windows – How to debug a website while running IIS 7

debuggingiisiis-7netwindows

I am running iis7 on my windows machine for testing purposes. Now I need to have access to the debugger so when something happens I can walk through it.

Yet when I put debug lines on my site nothing happens. So I am guessing I need more stuff setup to make debugging to work.

Everything is on the same machine. I have iis 7 on the same machine setup and I have Visual studios setup on my machine.

Best Answer

Check that you have debugging enabled in your web.config.

<compilation debug="true" strict="false" explicit="true">
</compilation>

...and I'm assuming you're running it through the debugger in vs.net, right?