From 67706f86f3816a0d2384201c1fb010746a45300d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 11 Feb 2026 14:54:18 +0000 Subject: [PATCH] more debugging tips --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.