Moshe's Blog

Tips and tricks learnt along the way.

Devtools - Jump to Debugger

| Comments

Here’s a quick trick to jump into a breakpoint without having to hunt through the sources for the function. Assume you have something like this Assume something is not working with this

It would be nice if we could just jump to the function with a breakpoint toggled. Here’s one way to do that: Type in > (function() { debugger; theFunctionToStepThrough(); })() Type it like this Now we get to this screen debugger caught in vm And if you hit F11 or click the step into button we get to this: Done! Hope it comes in handy


It seems that you don’t have to even wrap it in an IIFE, instead all you need to do is:

> debugger; test();