Google Chrome Debugging JS Getting Started

Source: Internet
Author: User
  1. 1

    We want to tune the JSON data see, here does not involve the interaction with the background.

  2. 2

    We open the developer tools in chrome and open them like, we can also use the shortcut key F12 to open. Select the files we want to debug, and believe you can find, ^_^.

  3. 3

    Set breakpoints settings, I set the breakpoint in line 11, set the method to the left click on it, I love this breakpoint, it looks really beautiful. Refresh the page to perform such as:

  4. 4

    Before we go down, we just type JSON (our object name) and look at the structure of the object, so we can see very clearly what the JSON is, without much explanation, such as:

  5. 5

    Press F10 down, we enter our variable name in turn, in this case 3 methods are the same, debugging results such as:

  6. 6

    If you're still using alert () to debug the JS code, discard it. Of course, this is only a very very simple entry-level article, more exciting to be found by you! Google Chrome has too many advantages, and if you haven't, it's highly recommended that you experience Internet boss's masterpiece Google chrome!

Google Chrome Debugging JS Getting Started

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.