Source: http://blog.csdn.net/caoxicao
Author: caoxi grass
Reprinted please indicate the source
View the information about ASP. NET Server Control debugging on the InternetArticleThis article is not detailed enough, or we didn't use vs. net2003 at all. Therefore, we decided to write this article:
To debug the server control, you must use the application of the server control.ProgramAnnex A debugger,
This is because the server control is compiled into a library file, and the debugger can only be attached to an executable file.
If only the. NET Framework SDK is available, you can use the graphical debugger dbgclr or the command line debugger cordbg.
This article describes how to use the debugging function of vs. net2003 ide to debug server controls.
To debug controls in vs. net, perform the following steps:
1) Place the class library of the control you want to debug and the web application that contains the web forms page of the control in the same solution. Make sure that the DEBUG = "true" attribute is set in the page command at the top of the page.
2) in the controlSource codeAnd then compile the solution.
3) in solution manager, right-click the page using the control, and then click "set as start page" from the pop-up menu"
4) In the debugging menu, click Start (or F5) to start debugging.
The debugger willCodeStop at the first breakpoint. From there, you can execute some common debugging operations, such as one-step execution and variable viewing.