how to set breakpoints from within js code?

1,810 views
Skip to first unread message

remy.damour

unread,
Jun 3, 2009, 7:09:23 AM6/3/09
to Firebug
Hi,

Is there a way to trigger a breakpoint from within the code itself
(ie. without having to open firebug, look for your file, search where
you want to set your breakpoint and click with the mouse).

Is there any console.break() function that might be called or
equivalent?

I tried to find it but with no success so far.
Regards,
Remy

johnjbarton

unread,
Jun 3, 2009, 10:26:15 AM6/3/09
to Firebug
The statement
debugger;
should breakpoint.
jjb

Remy Damour

unread,
Jun 4, 2009, 3:41:41 AM6/4/09
to fir...@googlegroups.com
Terrific! it's precisely what I was looking for.
Thx,
Remy
Reply all
Reply to author
Forward
0 new messages