Skip to content

Commit

Permalink
Add note regarding CPython debugging extensions and lldb
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Jul 22, 2024
1 parent 7881819 commit 3a98262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ When Python is run under `gdb`, several Python integration commands will be
available, such commands start with the `py-` prefix. For instance, the `py-bt`
allows to obtain a Python interpreter backtrace whenever the debugger hits a native
frame, this allows to improve the tracking of execution between Python and native
frames.
frames[^1].

For more information about `gdb` and `lldb` commands, we encourage reading
the [GDB to LLDB command map](https://lldb.llvm.org/use/map.html) page in the
official LLVM docs.

[^1]: This feature is not correctly working on `lldb` after CPython 3.12.

### Cython debugging
Since Cython produces intermediate C/C++ sources that then are compiled into native
code, stepping through may get difficult if done solely from the C source file.
Expand Down

0 comments on commit 3a98262

Please sign in to comment.