简体   繁体   中英

Google Chrome JavaScript debugging line by line

I am trying to follow the guide here: https://developers.google.com/chrome-developer-tools/docs/scripts-breakpoints

But it doesn't seem to work, ie

I have done the following:

  • Open the Developer Tools by hitting the Control-Shift-I shortcut
  • Open Scripts panel and select "script.js" from scripts drop-down
  • Set breakpoint on line 19 by clicking the line gutter (you can use the Control-G shortcut to reveal a line in a large file)
  • Move your mouse over this page
  • You should stop on the breakpoint

Nothing happens when I hover over "this page", and it doesn't stop at the breakpoint when I hver over "this page"...

What is going on?

I need to good way to debug javascript/jquery code

If you hover over the second screenshot on the page, it work as expected.

If this doesn't work, please try another page, as I use the chrome debugging tools quite often and I have never had a problem with it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM