Skip to content

Commit a0e522b

Browse files
committedOct 21, 2015
improve Debugging docs
1 parent 86d81c3 commit a0e522b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎site/source/docs/porting/Debugging.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ Manual print debugging
105105

106106
You can also manually instrument the source code with ``printf()`` statements, then compile and run the code to investigate issues.
107107

108-
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 tries to demangle C++ function names. Debug printouts can even execute arbitrary JavaScript.
108+
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 tries to demangle C++ function names (if you don't want or need C++ demangling, you can call :js:func:`jsStackTrace`).
109109

110-
For example:
110+
Debug printouts can even execute arbitrary JavaScript. For example:
111111

112112
.. code-block:: cpp
113113

0 commit comments

Comments
 (0)