Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pdb.set_trace() equivalent in web browser javascript?

While debugging python application, I normally use pdb / ipdb's set_trace() function to programmatically invoke breakpoint.

I was thinking whether similar things are possible in web browser's javascript. I'm pretty sure that if they exist, it's some browser-specific extensions to Firebug / Chrome / IE, but I couldn't find any information about them.

like image 856
Jeeyoung Kim Avatar asked Dec 31 '10 03:12

Jeeyoung Kim


Video Answer


1 Answers

Have you tried inserting the debugger statement? It will be treated as a breakpoint if you have a JS debugger like Firebug running.

like image 144
Dean Burge Avatar answered Oct 12 '22 23:10

Dean Burge