[Original] ASP. NET Server Control debugging

Source: Internet
Author: User

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.

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.