From eb117d720ad0d28a82eb4481c2dc00d9e3b19841 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 14 Apr 2024 20:50:05 +0800 Subject: [PATCH] Create debugging.md --- docs/features/debugging.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/features/debugging.md diff --git a/docs/features/debugging.md b/docs/features/debugging.md new file mode 100644 index 00000000..ee5db962 --- /dev/null +++ b/docs/features/debugging.md @@ -0,0 +1,19 @@ +--- +icon: dot +title: Debugging +--- + +After `v1.4.5`, you can invoke `breakpoint()` in your python code +to start a PDB-like session. + +The following commands are supported: + ++ `h, help`: show this help message ++ `q, quit`: exit the debugger ++ `n, next`: execute next line ++ `s, step`: step into ++ `w, where`: show current stack frame ++ `c, continue`: continue execution ++ `a, args`: show local variables ++ `p, print `: evaluate expression ++ `!, execute statement`: execute statement