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.
Have you tried inserting the debugger
statement? It will be treated as a breakpoint if you have a JS debugger like Firebug running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With