How to debug a deployed web site

This question kind of follows on froma previous one I posted.
I have a .net web site deployed on a server.
In certain circumstances the site falls over. Specifically, when I browse to the site from my PC (which has visual studio) to the web server using a particular dns entry.

So, I want to debug a browser session on my PC which is looking to a URL on a web server.

How can I do this?

Within VS when I attach to Internet Explorer no break point is ever reached?

Thanks in advance.

Jim

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Attaching to Internet Explorer isn’t going to help you because the web site doesn’t “run” inside IE. You need to attach to the IIS process on the web server to see what’s going on.

May I suggest you start by having a look through the basics of production debugging on Tess’s blog. I think this would be a great place to start for you.

Method 2

Sussed it… attach to w3wp.exe on the remote server.

Made easier for me because the app I’m debugging is in its own IIS App Pool so I could see (by the user name) which one of the w3wp.exe to attach to.

Works like a dream!


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x