Using JavaScript's debugger statement with Firefox

How to use JavaScript's debugger statement when using Firefox

If you don't use the debugger statement in JavaScript you are either very fortunate or you are missing a massive trick. You stick the statement debugger; in your JavaScript file and when JavaScript execution gets to it so long as you have your console open everything will pause and you can poke around the code live by calling things from the context you placed the debugger in. Super powerful.

Whilst Chrome supports this feature out of the box in Firefox this doesn't seem to be the case.

Happily there is a super easy fix, install the Venkman JavaScript Debugger Plugin and you can debug as you would in Chrome.

I noticed this while reading an MDN article on debugging JavaScript.

For more information on general debugging JavaScript with Firefox there is a great article over on MDN.

Recent posts View all

Security

5 Simple Ways to Keep a Computer Safe and Secure

You don’t need to be an expert to keep your computer safe and secure

Productivity

6 things I do to respond to support queries quickly

Here are some of the things we do to make sure we're responding to support queries as quickly as possible