How to debug Javascript Http://blog.joycode.com/saucer/archive/2006/10/26/85679.aspx__Java in VS 2005

Source: Internet
Author: User

The approximate steps are as follows:

1. Start script debugging in the browser: in IE menu tool->internet option-> Advanced page, remove disable script debugging (Internet Explorer) before

2. Then open your project in VS 2005, set the page you want to debug as the starting page, then press F5, then go to the VS 2005 menu Debug-> Windows->script Explorer,vs 2005 will open the Script manager, double-click one of the JS File, the file will open in the main window, and then you can add breakpoints, ...

This is my microsoftajaxwebforms.js in the VS 2005 debug asp.net AJAX Beta 1 To see how the form was submitted:

"Update" Aldebaran in the reply mentioned another method of interest in this approach, specific details of the reference

Debug Javascript with IE and Visual Studio 2005
http://brennan.offwhite.net/blog/2006/01/23/debug-javascript-with-ie-and-visual-studio-2005/

Probably so, set up the menu tool-> Internet Options-> Advanced page After you start the script debugging, close the browser, reopen IE, open the page you want to debug, and then go to the menu View->script debugger->break at Next Statement ... Then, when you want to execute JavaScript in a Web page, you'll jump out of a window to select the Script Debugger. If you choose VS 2005, there will be a small problem, it may open the File Selection dialog box, you open the JS source file, (obviously, in the above example, I do not have this name (with a long string of query string) file, but you can close this dialog box, Then double-click the file name of the script manager to do so. (in VS 20005 Team System, there is a problem that when you set a script breakpoint, sometimes the cursor goes somewhere else.) )

Add the debugger at the script point;
Or, with Firefox, it has its own 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.