How to debug a deployed web site

自作多情 提交于 2019-12-02 05:36:18

问题


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


回答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.




回答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!



来源:https://stackoverflow.com/questions/4213286/how-to-debug-a-deployed-web-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!