Debug JavaScript with vs.net

Source: Internet
Author: User

In Asp.net development, the script can improve BSProgramAbility to interact with customers and reduce data transmission between clients and services. However, most Asp.net developers tend to avoid writing client scripts or simply using scripts to complete some simple functions. There are many reasons for this situation, but it is difficult to debug script programs. The following procedure describes how to use the debugger in vs.net to debug javascript: 1. First, let your ie allow debugging of the script. The procedure is as follows: open ie-> tool menu-> inter option-> Advanced tab-> remove "Disable script debugging" option 2, open vs.net, create a new Asp.net project (or open one) 3. Run page 4 You Want To debug. When your page is displayed in IE, return to. net5, set the breakpoint in the script: debug menu-> window-> debug document-> select the page to debug in "Run document" (this is a floating toolbar similar to solution manager) 6. Then, you can access the script through the webpage. When the script runs to a breakpoint, You can debug it. if you want to enter the debugging status when loading the page, you can press F10 (process by process) for debugging.

Related Article

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.