mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Create debugging.md
This commit is contained in:
parent
d38fd25459
commit
eb117d720a
19
docs/features/debugging.md
Normal file
19
docs/features/debugging.md
Normal file
@ -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 <expr>`: evaluate expression
|
||||||
|
+ `!, execute statement`: execute statement
|
Loading…
x
Reference in New Issue
Block a user