How to debug controls during development

Source: Internet
Author: User

Development Environment: Based onVs2008sp1And. NET Framework 3.5 SP1, UseC #3.0ProceedProgramDesign.

Appendix: How do I debug controls during development?

How can I debug self-developed controls (especially those during design )?

 

01, UseVisual Studio (Hereinafter referred toVS)Open the control project and go"Solution Resource Manager"Right-click the project in the view and select Properties.

02On the Application tab, confirm that the output type is"Class Library";

03On the debug tab, set "Start Operation" to start external programs, and enterVSPATH ().

04, Start debugging, open a newVSInstance.

05InIDECreate a newASP. NETApplication.

06Add a control project in the toolbox to generateAssembly.

07Drag the control just added to the Toolbox into the test project page to use and test the control.

08InVSSet a breakpoint inVSOpen the page containing controls to debug the design period function.CodeRun the test page to debug the runtime logic code.

The simplest thing is to put the project of the control and the project of the Test Control under the same solution, add reference to the control project in the Test Control Project.

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.