Skip to content

Commit ea628e5

Browse files
committed
Document how to print a Python traceback in the Java debugger
1 parent 58089d6 commit ea628e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/contributor/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ mx python-gate --tags python-unittest
149149
150150
If some of the tests fail, you can re-run just a single test like this, substituting TEST-SELECTOR with the test you want to run. You can use the whole failed test name including the path as the selector.
151151
Note that you can insert `-d` to debug on the Java level or use `--inspect` to debug in the Chrome debugger.
152+
Use `com.oracle.graal.python.runtime.exception.ExceptionUtils.printPythonLikeStackTrace()` in the Java debugger to print the current Python traceback on `stderr`.
152153
153154
```bash
154155
mx [-d] graalpytest [--inspect] TEST-SELECTOR

0 commit comments

Comments
 (0)