trepan3k - a gdb-like debugger for Python 3¶
trepan3k is a gdb-like debugger for Python. It is a rewrite of pdb from the ground up. It is aimed for people who care about high-quality debuggers
A command-line interface (CLI) is provided as well as an remote access interface over TCP/IP.
See the Tutorial for ways to enter the debugger. See ipython-trepan for using this in ipython or an ipython notebook.
This package is for Python 3. See trepan2 for the same code modified to work with Python 2.
An Emacs interface is available via realgud.
- Features
- More Exact location information
- Debugging Python bytecode (no source available)
- Source-code Syntax Colorization
- Command Completion
- Terminal Handling
- Smart Eval
- More Stepping Control
- Event Tracing of Calls and Returns
- Debugger Macros via Python Lambda expressions
- Byte-code Instruction Introspection
- Some Debugger Command Arguments can be Variables and Expressions
- Out-of-Process Debugging
- Egg, Wheel, and Tarballs
- Modularity
- Documentation
- See Also
- How to install
- Entering the Trepan Debugger
- Invoking the Debugger Initially
- Calling the debugger from IPython
- Calling the debugger from an Interactive Python Shell
- Calling the debugger from your program
- Calling the debugger from pytest
- Set up an exception handler to enter the debugger on a signal
- Set up an exception handler allow remote connections
- Startup Profile
- Command Syntax
- Trepan Command Reference
- Manual Pages