From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- devtools/docs/user/debugger/index.rst | 70 +++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 devtools/docs/user/debugger/index.rst (limited to 'devtools/docs/user/debugger/index.rst') diff --git a/devtools/docs/user/debugger/index.rst b/devtools/docs/user/debugger/index.rst new file mode 100644 index 0000000000..6db1e386ff --- /dev/null +++ b/devtools/docs/user/debugger/index.rst @@ -0,0 +1,70 @@ +=============================== +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:`Black box a source ` +- `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 ` -- cgit v1.2.3