0

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, i.e.

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

3
  • In Chrome, you can use the command debugger; to stop for a breakpoint at any position of your script. Commented May 16, 2012 at 16:01
  • @DiViS0R It's actually called debugger; not debug;! Commented May 16, 2012 at 16:03
  • Thank's for that. Just ran out of 'concentration fluid' (coffee). Commented May 16, 2012 at 16:07

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.