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.