Is there a way to set breakpoints when specific functions are about to execute?
It needn't be an explicit breakpoint - I just want execution to pause when a console.log()
is about to be called.
Or should I resort to this method.
I prefer to accomplish this without modifying my code, or manually setting breakpoints at every console.log
.
debbuger;
before theconsole.log
. 2. Open the dev-tool, switch toSources
tab and find thatconsole.log
in your code, click on its line number at the left and it should set a break point for you.debugger;
.console.log
. I was hoping Chrome Dev Tools had a way of just telling it to break in front of allconsole.log
calls.