You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,22 @@ and start UDB while sourcing the `libpython.gdb` file from the same directory
21
21
$ udb --ex "source ./libpython.gdb"
22
22
```
23
23
24
-
The version of the `libpython.py` library must generally match the version of Python you want to
25
-
debug. These extensions are built around the 3.10 version of the `libpython.py` library.
24
+
The supported version of Python is currently cpython 3.10. The interpreter must have been compiled with full debug information (`-g3`) and without cpython's "computed gotos" feature.
25
+
26
+
You can use the `./setup-python` script to install a suitable version of Python with `pyenv`:
27
+
28
+
```
29
+
$ source ./setup-python
30
+
$ python --version
31
+
Python 3.10.15
32
+
```
26
33
27
34
### Usage
28
35
29
36
Use the following commands to inspect Python state:
30
37
31
38
-`py-print` (`pp`) to print Python objects
39
+
-`py-eval` (`pe`) to evaluate Python expressions
32
40
-`py-list` to list Python source code
33
41
-`py-bt` to show Python backtrace
34
42
-`py-locals` to show local Python variables
@@ -50,7 +58,7 @@ The `py-last-attr` command takes an optional argument to specify which attribute
50
58
51
59
---
52
60
53
-
Switch to the Python layout in TUI mode to get a better overview of your program. This layout automatically shows the output from `py-list`, `py-dis`, `py-locals` and `py-bt`:
61
+
Switch to the Python layout in TUI mode to get a better overview of your program.
0 commit comments