summaryrefslogtreecommitdiffstats
path: root/devtools/docs/user/debugger/how_to/pretty-print_a_minified_file/index.rst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /devtools/docs/user/debugger/how_to/pretty-print_a_minified_file/index.rst
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--devtools/docs/user/debugger/how_to/pretty-print_a_minified_file/index.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/devtools/docs/user/debugger/how_to/pretty-print_a_minified_file/index.rst b/devtools/docs/user/debugger/how_to/pretty-print_a_minified_file/index.rst
new file mode 100644
index 0000000000..b44ac3c48f
--- /dev/null
+++ b/devtools/docs/user/debugger/how_to/pretty-print_a_minified_file/index.rst
@@ -0,0 +1,22 @@
+============================
+Pretty-print a minified file
+============================
+
+To prettify a minified file, click the **Pretty print source** icon |image1| at the bottom of the :ref:`source pane <debugger_ui_tour_source_pane>`. The debugger formats the source and displays it as a new file with a name like: "{ } [original-name]".
+
+.. |image1| image:: pretty_print_icon.png
+ :width: 20
+
+.. image:: pretty_print_source.png
+ :class: border
+
+After you click the icon, the source code looks like this:
+
+.. image:: pretty_print_after.png
+ :class: border
+
+The **Pretty print source** icon is available only if the source file is minified (i.e., not an original file), and is not already "prettified".
+
+.. note::
+
+ Currently Firefox `does not support <https://bugzilla.mozilla.org/show_bug.cgi?id=1010150>`_ pretty printing inline Javascript.