From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. 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..e67ff59412 --- /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:`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 ` -- cgit v1.2.3