Linux command
pudb 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Debug Python script
pudb [script.py]
Debug with arguments
pudb [script.py] [arg1] [arg2]
Start at breakpoint
python -m pudb [script.py]
Post-mortem debugging
pudb --post-mortem [script.py]
说明
pudb is a full-screen, console-based visual debugger for Python. It provides a TUI with code view, variable inspector, stack trace, and breakpoints.
参数
- --pre-run _command_
- Run command before script.
- --post-mortem
- Debug after exception.
- --steal-output
- Capture stdout/stderr.
- -m _module_
- Run module.
FAQ
What is the pudb command used for?
pudb is a full-screen, console-based visual debugger for Python. It provides a TUI with code view, variable inspector, stack trace, and breakpoints.
How do I run a basic pudb example?
Run `pudb [script.py]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --pre-run _command_ do in pudb?
Run command before script.