How to debug a website deployed on IIS

Source: Internet
Author: User

After a website is successfully deployed, you may encounter some errors, but you cannot see the error source at a glance.ProgramAnd can be used to locate errors accurately.Code. The following describes how to perform breakpoint debugging on a deployed website (with the website source code provided ). (DH) is a website that has been deployed:

Step 1: Open the website program through Vs and set the breakpoint at the corresponding location in the background of the error page

Step 2: Select tools on the toolbar --> append to process options --> select w3wp.exe and click append

If you do not have the w3wp.exe option, it may be that your computer is not running as an administrator. find my computer, right-click manage, find the user and the user under the group, find administrator, and remove the Disabled Account

2. Choose tools on the vs selection toolbar --> attach to process options. In the displayed dialog box, check the processes in all sessions.

 

Step 3: Go to the IIS browsing website and jump to the corresponding page where the breakpoint is set. The program will automatically go to vs for breakpoint debugging.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.