diff --git a/README.md b/README.md index a6ca6f47bd..0d3543c7ae 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,13 @@ Test runs infinitely? Build the test program executable: And then run it, capturing the stack trace: +``` gdb -batch \ -ex "python import threading; threading.Timer(1.0, lambda: gdb.post_event(lambda: gdb.execute('interrupt'))).start()" \ -ex run \ -ex "bt full" \ -ex quit \ zig-out/bin/test - +``` You are welcome to replace `-ex "bt full"` with anything other of interest.