1. Set breakpoints and track debugging
1. F9 sets the breakpoint, F10 performs debugging by process, and F11 performs statement-by-statement debugging.
2. Right-click the breakpoint statement line and choose breakpoint-condition. In the displayed dialog box, set the condition.
Ii. Page tracking
Add "Trace = true" at the top of the page to start the tracing on this page. You can use Trace. Write and Trace. Warm to enter the desired information in the page tracing information.
3. debug client scripts
1. Enable client script debugging
IE-tools-"Internet Options"-advanced-Disable script debugging
2. Press F5 or F10 in VS2008 to start debugging. If the breakpoint cannot be stopped in VS2005, go to IE-View-script debugging program-open, return to VS2005 to set the breakpoint, and refresh the page.
Iv. Exception capture
5. Page-Level Error Handling
For errors on a separate page, you can add the processing logic code in the page_error event and get the error on the current page through Server. GetLastError ().
6. application-level error handling
Intercepts errors running in the entire application. You can add the processing logic to application_error in the Global. asax file of the project.
VII. Application configuration
You can configure common error handling methods in web. config.
By: dxh_0829