Manually set a breakpoint in safari (and in chrome on OSX)
October 23rd, 2009 in OS X by ashton
To manually set a breakpoint add the line ‘debugger;’
So if I have some js in an onclick, and I’m trying to look at the scope there, just add ‘debugger;’ to the onclick.
click me