When using Google Chrome, I want to debug some javascript. How can I do that?
+4
A:
Not sure about this, but have you tried adding this to your source:
debugger;
Works in most, if not all browsers.
Omer van Kloeten
2008-09-15 20:08:09
where exactly?can you give more info on that?Thank you,
squadette
2008-09-15 20:15:17
you place the line inside your source code and it's the equivalent of a breakpoint.
Omer van Kloeten
2008-09-16 05:12:08
+20
A:
CTRL-SHIFT-J (also under the Page > Developer > Debug JavaScript menu item)
John Sheehan
2008-09-15 20:08:22
or Cmd-Shift-J for Macs. God I love this `<kbd>` tag. Too bad I can't use it in comments.
Anurag
2010-05-19 01:08:10