Debug JavaScript/VB Script programs (ASP. NET)

Source: Internet
Author: User

DebuggingJavascript/VB ScriptScriptProgram(ASP. NETArticle)

With the aboveDebuggingJavascript/VB ScriptScript program (ASPArticle)AndDebuggingJavascript/VB ScriptScript program (IEArticle)Basic, debuggingASP. NETInsideDHTMLThe script is simple.

Note::Visual StudioVersion is2008.

Debug on a published website

1.FollowDebuggingJavascript/VB ScriptScript program (IEArticle)OpenIEAndVisual StudioAttach to the correctIEInstance.

2. in Visual Studio , find the page you want to debug, for example, ie displays http: // localhost/training/test. aspx page , open test. Source Code of aspx .

3.Find the one you want to debugDHTMLSourceCode, Note that you cannot addRunat = "server"Mark the scripts because they are executed on the server. ClickF9(Thanks to netizensHuiTell me this tip ). As shown in:

4.BackIERun the command again.DHTMLThe script is ready, that is, the effect:

Debugging under developmentASP. NETWebsite scripts

If you haveASP. NETFull source code of the website (including solutions). SlnFile), it is easy to debug the script program:

1.Open. SlnFile, set the breakpoint on the script code to be debugged.

2.PressF5Start the website and execute the script code. At this time,Visual StudioThe execution of the script should be interrupted.

 

 

 

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.