how to set breakpoints from within js code?

1.810 visualizações
Pular para a primeira mensagem não lida

remy.damour

não lida,
3 de jun. de 2009, 07:09:2303/06/2009
para 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

não lida,
3 de jun. de 2009, 10:26:1503/06/2009
para Firebug
The statement
debugger;
should breakpoint.
jjb

Remy Damour

não lida,
4 de jun. de 2009, 03:41:4104/06/2009
para fir...@googlegroups.com
Terrific! it's precisely what I was looking for.
Thx,
Remy
Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem