2019-09-09 23:02:49 +03:00
PuDB: a console-based visual debugger for Python
================================================
2017-04-06 18:52:23 +03:00
2021-03-08 17:07:27 +03:00
.. image :: https://gitlab.tiker.net/inducer/pudb/badges/main/pipeline.svg
2019-09-09 23:02:49 +03:00
:alt: Gitlab Build Status
2021-03-08 17:07:27 +03:00
:target: https://gitlab.tiker.net/inducer/pudb/commits/main
.. image :: https://github.com/inducer/pudb/workflows/CI/badge.svg?branch=main&event=push
2020-03-16 21:51:37 +03:00
:alt: Github Build Status
2021-03-08 17:07:27 +03:00
:target: https://github.com/inducer/pudb/actions?query=branch%3Amain+workflow%3ACI+event%3Apush
2019-09-09 23:02:49 +03:00
.. image :: https://badge.fury.io/py/pudb.png
:alt: Python Package Index Release Page
:target: https://pypi.org/project/pudb/
2011-07-29 19:19:59 +04:00
2013-03-06 07:41:00 +04:00
Its goal is to provide all the niceties of modern GUI-based debuggers in a
more lightweight and keyboard-friendly package. PuDB allows you to debug code
2021-04-17 22:40:37 +03:00
right where you write and test it--in a terminal.
2011-07-29 19:19:59 +04:00
2021-04-17 21:46:36 +03:00
Here are some screenshots:
2011-07-29 19:19:59 +04:00
2021-04-17 22:40:37 +03:00
* Light theme
2011-07-29 19:19:59 +04:00
2021-04-17 22:40:37 +03:00
.. image :: doc/images/pudb-screenshot-light.png
* Dark theme
.. image :: doc/images/pudb-screenshot-dark.png
2021-04-17 20:43:24 +03:00
You may watch screencasts too:
* `Meet Pudb, a debugger for Python code (2020) <https://www.youtube.com/watch?v=bJYkCWPs_UU> `_
* `PuDB Intro Screencast (2009) <http://vimeo.com/5255125> `_
2011-07-29 19:19:59 +04:00
Features
--------
2013-03-06 07:41:00 +04:00
* Syntax-highlighted source, the stack, breakpoints and variables are all
visible at once and continuously updated. This helps you be more aware of
what's going on in your program. Variable displays can be expanded, collapsed
2011-07-29 19:19:59 +04:00
and have various customization options.
2021-04-17 21:00:29 +03:00
* Pre-bundled themes, including dark themes via "Ctrl-P". Could set a custom theme also.
2021-04-17 20:43:24 +03:00
2013-03-06 07:41:00 +04:00
* Simple, keyboard-based navigation using single keystrokes makes debugging
quick and easy. PuDB understands cursor-keys and Vi shortcuts for navigation.
2013-10-02 13:19:11 +04:00
Other keys are inspired by the corresponding pdb commands.
2011-07-29 19:19:59 +04:00
2013-03-06 07:41:00 +04:00
* Use search to find relevant source code, or use "m" to invoke the module
browser that shows loaded modules, lets you load new ones and reload existing
2011-07-29 19:19:59 +04:00
ones.
2013-03-06 07:41:00 +04:00
* Breakpoints can be set just by pointing at a source line and hitting "b" and
then edited visually in the breakpoints window. Or hit "t" to run to the line
2011-07-29 19:19:59 +04:00
under the cursor.
* Drop to a Python shell in the current environment by pressing "!".
2020-08-13 21:23:03 +03:00
Or open a command prompt alongside the source-code via "Ctrl-X".
2011-07-29 19:19:59 +04:00
2013-03-06 07:41:00 +04:00
* PuDB places special emphasis on exception handling. A post-mortem mode makes
2011-07-29 19:19:59 +04:00
it easy to retrace a crashing program's last steps.
2018-09-23 17:00:20 +03:00
* Ability to control the debugger from a separate terminal.
2011-07-29 19:19:59 +04:00
* IPython integration (see `wiki <http://wiki.tiker.net/PuDB> `_ )
2020-08-13 21:23:03 +03:00
* Should work with Python 3.6 and newer. (Versions 2019.2 and older continue
to support Python 2.7.)
2012-08-12 00:10:48 +04:00
2017-04-06 01:01:16 +03:00
Links
-----
2011-07-29 19:19:59 +04:00
2017-04-06 01:01:16 +03:00
`PuDB documentation <https://documen.tician.de/pudb> `_
2011-07-29 19:19:59 +04:00
PuDB also has a `mailing list <http://lists.tiker.net/listinfo/pudb> `_ that
2013-03-06 07:41:27 +04:00
you may use to submit patches and requests for help. You can also send a pull
request to the `GitHub repository <https://github.com/inducer/pudb> `_
2011-07-29 19:19:59 +04:00
Development Version
-------------------
You may obtain the development version using the `Git <http://git-scm.org/> `_
version control tool.::
2020-03-12 18:48:49 +03:00
git clone https://github.com/inducer/pudb.git
2011-07-29 19:19:59 +04:00
2020-03-12 18:48:49 +03:00
You may also `browse the code <https://github.com/inducer/pudb> `_ online.