In Google Chrome, there is a debug()
function which can be called from the DevTools console and accepts a function as its parameter. It can be used when you want to pause whenever a specific function is called.
Is there any similar Firefox alternative that can be called from the console?
Now, in Firefox, I have to find the source code for the function in the Debugger tab and set a breakpoint at the function.