=============================== The Firefox JavaScript Debugger =============================== The JavaScript Debugger enables you to step through JavaScript code and examine or modify its state to help track down bugs. .. raw:: html

You can use it to debug code running locally in Firefox or running remotely, for example on an Android device running Firefox for Android. See :doc:`about debugging <../about_colon_debugging/index>` to learn how to connect the debugger to a remote target. To find your way around the debugger, here's a :doc:`quick tour of the UI`. How to ****** To find out what you can do with the debugger, refer to the following how-to guides. - :doc:`Open the debugger ` - :doc:`Pretty-print a minified file ` - :doc:`Search ` - :doc:`Use a source map ` - `Debug worker threads `_ Pause execution --------------- You probably want to pause the execution of your code, in order to see what is going on at various points. There are multiple ways to tell the Debugger how and when to pause: - :doc:`Set a breakpoint ` - :doc:`Set a conditional breakpoint ` - :doc:`Set an XHR breakpoint ` - :doc:`Set event listener ` - :doc:`Break on exceptions ` - :doc:`Use watchpoints for property reads and writes ` - :doc:`Break on DOM Mutation ` - :doc:`Disable breakpoints ` Control execution ----------------- What can you do after execution pauses? - :doc:`Step through code ` - :doc:`Ignoring sources ` - `Debug worker threads `_ - :doc:`Debug eval sources ` Look at values -------------- You probably want to see the value of variables or expressions, either during execution or when it is paused. - :doc:`Set a logpoint ` - :doc:`Set watch expressions ` Reference ********* - :ref:`Keyboard shortcuts ` - :doc:`Source map errors `