Skip to content

Commit 1e875ed

Browse files
authored
Remove DEMANGLE_SUPPORT from docs (NFC) (#21430)
1 parent 018e16f commit 1e875ed

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

site/source/docs/porting/Debugging.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ Some important settings are:
137137
performance. Default value is 1 if ``ASSERTIONS=1`` is set, and disabled
138138
otherwise.
139139

140-
-
141-
.. _debugging-DEMANGLE_SUPPORT:
142-
143-
``DEMANGLE_SUPPORT=1`` links in code to automatically demangle stack traces, that is, emit human-readable C++ function names instead of ``_ZN..`` ones.
144-
145140
A number of other useful debug settings are defined in `src/settings.js <https://github.com/emscripten-core/emscripten/blob/main/src/settings.js>`_. For more information, search that file for the keywords "check" and "debug".
146141

147142
.. _debugging-sanitizers:
@@ -166,7 +161,7 @@ Manual print debugging
166161

167162
You can also manually instrument the source code with ``printf()`` statements, then compile and run the code to investigate issues. Note that ``printf()`` is line-buffered, make sure to add ``\n`` to see output in the console.
168163

169-
If you have a good idea of the problem line you can add ``print(new Error().stack)`` to the JavaScript to get a stack trace at that point. Also available is :js:func:`stackTrace`, which emits a stack trace and also tries to demangle C++ function names if ``DEMANGLE_SUPPORT`` is enabled (if you don't want or need C++ demangling in a specific stack trace, you can call :js:func:`jsStackTrace`).
164+
If you have a good idea of the problem line you can add ``print(new Error().stack)`` to the JavaScript to get a stack trace at that point.
170165

171166
Debug printouts can even execute arbitrary JavaScript. For example::
172167

0 commit comments

Comments
 (0)