JavaScript Break when a function is called


Example

For named (non-anonymous) functions, you can break when the function is executed.

debug(functionName);

The next time functionName function runs, the debugger will stop on its first line.