Break when a function is called

suggest change

In the browser console, debug is a DevTools helper, not a JavaScript statement. Pass a function reference:

debug(functionName);

The next time that function runs, the debugger pauses on its first line, and it keeps pausing on every call until you run undebug(functionName). The function does not have to be declared with a name; you need a reference to it.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents