Javascript debugging in Windows-Use Visual Studio

Source: Internet
Author: User

The previous blog post introduced how to use IE Developer Tools to debug Javascript. Here we will talk about how to use Visual Studio to debug JavaScript, or the previous example.
Before using Visual Studio, you must

  • Disable the 'Disable script debugging (Internet exlpore) 'option of IEHook down
  • And enable IE

    Here we use Visual Studio 2008 and IE8

    1. Use test.html before vs2008to directly drag and drop it. It is still a breakpoint on return p.

    2. debug> attach to process select icycler.exe attach to start debugging

    3.use IE to open test.html. Refresh the page and you will find that it is broken correctly.CodeIt's a little troublesome here. You have to perform F11 and F10 on your own to sum up return P (ie developer tools is very convenient in this regard ).

    Let's take a look at the final result:

    In this way, Visual Studio is successfully used to decrypt the JavaScript code. The result is the same as that of IE Developer Tools!

    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.