Differences between revisions 10 and 70 (spanning 60 versions)
Revision 10 as of 2009-01-28 18:55:39
Size: 3703
Editor: adsl-76-212-181-244
Comment: Added PyConquer link and description
Revision 70 as of 2022-05-01 20:51:18
Size: 13731
Editor: Nudin
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Python debuggers:

If you have anything to contribute -- e.g. configurations for editors, new debuggers, or opinion -- don't hesitate to edit or create pages.
## page was renamed from PythonDebuggers
Add your useful tools here -- editors, debuggers and other utils that really help with the process.
Line 7: Line 6:
=== Unix & Multi-platform Debuggers === === Debuggers ===
||<tablewidth="&quot" tablestyle="100%&quot">'''Name''' ||'''Platform''' ||''' Notes ''' ||
||[[https://docs.python.org/library/pdb.html|pdb]] ||All ||The standard library debugger, part of all Python installations. ||
||[[http://pypi.python.org/pypi/pudb|pudb]] ||Unix,Mac OS X ||A visual, console-based, full-screen debugger, designed as a more comfortable drop-in replacement for pdb. (also supports IPython) ||
||PdbRcIdea ||All ||A .pdbrc for Python's standard debugger, pdb, which allows you to run arbitrary Python commands on pdb startup. ||
||gdb ||*nix ||See DebuggingWithGdb ||
||[[http://pypi.python.org/pypi/trepan2|trepan2]], [[https://pypi.org/project/trepan3k/|trepan3k]] ||Unix, Windows, Mac OS X ||A rewrite of pdb/pydb with closer compliance to gdb . This is the only debugger that I (rocky) am aware of that uses decompilation technology (also written by me), so that you can debug CPython bytcode files where no source code is available. Decompilation is also used to provide sensible debugging inside exec strings, and more accurate position information when stopped or in showing a stack trace. In addition to the features of pdb/pydb, the debugger supports syntax coloring (via pygments), has extensive on-line help (in rendered [[reStructuredText]]), [[https://python3-trepan.readthedocs.io/en/latest/|readthedocs documentation]], command completion, a smarter eval, debugger macros written in Python, and more. ||
||[[https://github.com/antocuni/pdb|pdb++]] ||Unix, Windows, Mac OS X ||An extension of the pdb module of the standard library. It is meant to be fully compatible with its predecessor, yet it introduces a number of new features to make your debugging experience as nice as possible. ||
||[[https://github.com/benmezger/pydebug|Python-pydebug]] ||Unix, Windows, Mac OS X ||A set of debugging decorators which respects Django's settings in case the package is withing a Django project. It allows a user to PDB into a function, do a Line profiler, inspect an object and Disasemble the function. ||
||[[https://pypi.org/project/winpdb-reborn/|winpdb-reborn]] || Windows, Linux || Fork of winpdb after this was unmaintained ||
||[[https://github.com/gotcha/ipdb|ipdb]] || All || Improved version of pdb that is part of IPython but also can be used separately ||
||[[https://github.com/kmaork/madbg|madbg]] || linux, python>=3.7 || fully-featured remote debugger: attaching to running programs, especially usefull to debug programms with TUI ||
Line 9: Line 19:
|| '''Name''' || '''Platform''' || '''Notes''' ||
|| [[http://rpdb.digitalpeers.com|rpdb]] || Unix,Windows,Mac OS X|| ( is Obsolete replaced by rpdb2) rpdb.py improves pdb.py's usability and adds support for remote debugging, multiple threads debugging, post mortem of unhandled exceptions, and for debugging of embedded scripts.||
|| PdbRcIdea || All || A .pdbrc for Pyhon's standard debugger, pdb, which allows you to run arbitrary Python commands on pdb startup.||
|| [[http://sourceforge.net/projects/hapdebugger/|HAP Python Remote Debugger]] || Windows || A python IDE with remote debugging capability.||
|| [[http://www.digitalpeers.com/pythondebugger/|Winpdb and Rpdb2]] || Unix,Linux,Windows || an advanced python debugger, with support for smart breakpoints, multiple threads, namespace modification, embedded debugging, encrypted communication and speed of up to 20 times that of pdb.||
|| [[http://jpydbg.sourceforge.net/|JpyDbg]] || Mac OS X, OS/2, Unix, VMS and Windows || both a CPYTHON and a JPYTHON(JYTHON) debugging framework which has been integrated inside Jedit as a standard jedit pluggin.||
||[[http://bashdb.sourceforge.net/pydb|pydb]] || Unix, Windows, OS X || An expanded version of the pdb loosely based on the gdb command set. The debugger supports thread debugging, signal handling, non-interactive tracing, and much more.||
||[[http://sourceforge.net/projects/ddd/|DDD]] || Unix || DDD is a graphical front-end for command-line debuggers such as GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger, GNU Make debugger, or the Python debugger. DDD displays data structures as graphs and plots. A deprecated version of pydb comes with this package. For GNU make debugging, use [[http://sourceforge.net/project/showfiles.php?group_id=61395&package_id=65341|ddd-test5]]||
||[[http://web.archive.org/web/20040331032128/home.t-online.de/home/Ulrich.Herold/pydebug.py|pyDebug]] || Unix,Windows || Debugger for Python programs with a graphical user interface. It is inherited from "bdb" but uses a GUI and has some powerful features like object browser, windows for variables, classes, functions, exceptions, stack, conditional breakpoints, etc.||
|| [[http://pydev.sf.net|PyDev]] || Mac OS X, Linux, Windows || Allows debugging multiple threads in Jython and Python (It is featured as a 'Python IDE' plugin for Eclipse).||
|| gdb || *nix || See DebuggingWithGdb ||
|| [[http://wingware.com/|Wing IDE]] || Mac OS X, Linux, Windows || An IDE that can debug multiple threads in code launched from the IDE or code launched externally, running under CPython and Stackless Python. The GUI includes a Debug Probe, which is a Python shell running in the context of the paused debug process. The IDE's debugger also features value watching (by symbolic path, object reference, or a combination), conditional breakpoints, debugging of tests running in the integrated unit testing tool, special support for Zope2 and Plone, and How-Tos for debugging Turbogears, Django, Google App Engine, wxWidgets, PyQt, Tkinter, CGIs, and many other packages.||
Debuggers that are no longer maintained:
||<tablewidth="&quot" tablestyle="100%&quot">'''Name''' ||'''Platform''' ||''' Notes ''' ||
||[[http://sourceforge.net/projects/hapdebugger/|HAP Python Remote Debugger]] ||Windows ||A python IDE with remote debugging capability. ||
||[[https://web.archive.org/web/20180724120653/http://winpdb.org/|Winpdb and Rpdb2]] ||Unix,Linux,Windows ||An advanced python debugger, with support for smart breakpoints, multiple threads, namespace modification, embedded debugging, encrypted communication and speed of up to 20 times that of pdb. ||
||[[http://bashdb.sourceforge.net/pydb|pydb]] ||Unix, Windows, OS X ||Obsolete. An expanded version of pdb loosely based on the gdb command set. The debugger supports thread debugging, signal handling, non-interactive tracing, and much more. This was written in the era of Python 2.4-2.6. See trepan3k below. ||
||[[https://web.archive.org/web/20151108104131/http://heather.cs.ucdavis.edu/~matloff/xpdb.html|Xpdb]] ||Unix ||pdb extension with '''curses''' module that adds console window with source code. ||
||[[http://jpydbg.sourceforge.net/|JpyDbg]] ||Mac OS X, OS/2, Unix, VMS and Windows ||Both a CPYTHON and a JPYTHON(JYTHON) debugging framework which has been integrated inside Jedit as a standard jedit pluggin. ||
||[[http://web.archive.org/web/20040331032128/home.t-online.de/home/Ulrich.Herold/pydebug.py|pyDebug]] ||Unix,Windows ||Debugger for Python programs with a graphical user interface. It uses bdb (part of stdlib) but adds a GUI and has some powerful features like object browser, windows for variables, classes, functions, exceptions, stack, conditional breakpoints, etc. ||
||[[https://pypi.python.org/pypi/rpdb/|rpdb]] ||Unix, Windows,Mac OS X ||(Predecessor of rpdb2 and winpdb) rpdb.py improves pdb's usability and adds support for remote debugging, multiple threads debugging, post mortem of unhandled exceptions, and for debugging of embedded scripts. ||
||[[http://sourceforge.net/projects/ddd/|DDD]] ||Unix ||Graphical front-end for command-line debuggers such as GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger, GNU Make debugger, or the Python debugger. DDD displays data structures as graphs and plots. A deprecated version of pydb comes with this package. For GNU make debugging, use [[http://sourceforge.net/project/showfiles.php?group_id=61395&package_id=65341|ddd-test5]] ||
||[[http://pyclewn.sourceforge.net/|Pyclewn]] ||*nix, Windows ||Pyclewn allows you to use [[http://www.vim.org/|Vim]] as a front end to a debugger. Pyclewn currently supports gdb and pdb. ||
Line 22: Line 31:
=== IDEs with Debug Capabilities ===
Since debugging is one of the the functions that usually helps make up the "Integrated" in "Integrated Development Environment", expect that most IDEs will have debugging capability even if not listed explicitly here.
||[[http://thonny.org|Thonny]] ||Mac OS X, Linux, Windows ||For teaching/learning programming. Focused on program runtime visualization. Provides stepping both in statements and expressions, no-hassle variables view, separate mode for explaining references etc. ||
||[[http://pydev.org|PyDev]] ||Mac OS X, Linux, Windows ||Allows debugging multiple threads in Jython and Python (It is featured as a 'Python IDE' plugin for Eclipse). ||
||[[http://wingware.com/|Wing IDE]] ||Mac OS X, Linux, Windows ||An IDE that can debug multiple threads and multiple processes, including code launched from the IDE or code launched externally, running under CPython and Stackless Python. The GUI includes a Debug Probe, which is a Python shell running in the context of the paused debug process. The IDE's debugger also features value watching (by symbolic path, object reference, or a combination), conditional breakpoints, move program counter, debugging of tests running in the integrated unit testing tool, special support for Django, and How-Tos for debugging code running under Flask, web3py, Django, Google App Engine, wxPython, PyQt, Tkinter, Blender, Maya, NUKE, and many other packages. ||
||[[http://activestate.com/komodo/features/|Komodo IDE]] ||Mac OS X, Linux, Windows || ||
||[[http://jetbrains.com/pycharm/features/|!PyCharm IDE]] ||Mac OS X, Linux, Windows ||!PyCharm's integrated debugger works for Python and Jython, supports debugging of multiple threads, remote debugging, allows debugging Django, Google App Engine applications and unit tests. The debugger features various breakpoints, stepping modes, frames view, watches, evaluate expression tool and a debug console. Conditional and Exception breakpoint types are available for more precise control. Debug console allows executing any Python statements in the context of the process being debugged while stopped at a breakpoint. ||
||[[http://code.google.com/p/pyscripter/|PyScripter]] ||Windows || ||
||[[http://dashingsoft.com/products/pyshield.html|Pyshield]] ||Linux, Windows ||An IDE tool used to edit, debug Python scripts, publish encrypted scripts, build a standalone executable file, and make installation in various forms(.msi, .tar.gz, .rpm, .zip, .tar.bz2). It includes an editor simulating Emacs python-mode, a GUI debugger simulating GDB, a project view used to manage scripts, modules, extensions, packages and platform specific data files. ||
||[[http://pytools.codeplex.com|Python Tools for Visual Studio]] ||Windows ||Supports Python (any implementation with sufficient sys.settrace capabilities) and IronPython .NET debugging. Includes MPI cluster debugging, breakpoints, conditional breakpoints, locals, watch, and immediate windows, step into/out/over, break on exception, and break on unhandled exception. ||
||[[https://code.visualstudio.com|Visual Studio Code]] ||Mac OS X, Linux, Windows ||Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and MacOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is free and [[https://github.com/Microsoft/vscode|open-source]], although the official [[https://code.visualstudio.com/download|download]] is under a proprietary license. Supports Python debugging via [[https://code.visualstudio.com/docs/languages/python#_debugging|extensions]]. ||
||[[https://codewith.mu/|Mu]] ||Mac OS X, Linux, Windows ||A simple Python editor for beginner programmers, providing a simple interface depending on the project type. It includes visual debugging as first citizen. ||
||[[https://jupyter.org/|Jupyter]] || Web (Mac OS X, Linux, Windows) || Web UI for Notebooks in Python and other programming language, has a [[https://blog.jupyter.org/a-visual-debugger-for-jupyter-914e61716559|visual debugger]] intregrated. ||

=== Profilers ===
|| [[https://docs.python.org/3.8/library/profile.html|cProfile]] || All || profiler in the Python standard library ||
|| [[https://docs.python.org/3.8/library/profile.html|profile]] || All || pure Python module, in the Python standard library ||
|| [[https://pptop.bma.ai/|pptop]] || ||Remote process inspector/profiler for Python 2/3. Uses GDB to inject code. ||
|| [[https://github.com/benfred/py-spy|pyspy]] || || Easy to use sampling profiler ||
|| [[https://github.com/emeryberger/scalene|scalene]] || || high-performance, high-precision CPU and memory profiler ||
|| [[https://pypi.org/project/yappi/|yappi]] || || thread&coroutine aware ||
|| [[https://github.com/rkern/line_profiler|line_profiler]] || || ||
|| [[https://pypi.org/project/memory-profiler/|memory_profiler]] || || ||
|| [[https://github.com/pympler/pympler|pympler]] || || Development tool to measure, monitor and analyze the memory behavior of Python objects ||
||[[https://github.com/bloomberg/memray|Memray]] || Mac OS X, Linux, Windows || memory profiler for Python ||
Line 24: Line 58:

|| '''Name''' || '''Platform''' || '''Notes''' ||
|| [[http://code.google.com/p/pythontracer/|pythontracer]] || || ||
|| [[http://www.aminus.net/wiki/PyConquer|PyConquer]] || Any || Trace hook logger which outputs each thread in its own "swimlane" to make multithreaded analysis easier. Can also time calls (naively) and watch variables. ||
||[[http://github.com/darwin/firepython|FirePython]] ||!GoogleAppEngine + Firefox ||!FirePython is a python logger console integrated into Firebug (similar to !FirePHP). See http://appengine-cookbook.appspot.com/recipe/firepython-logger-console-inside-firebug/ ||
||[[https://github.com/ionelmc/python-manhole/|manhole]] ||Mac OS X, Linux ||Remote process inspector (using an active component, using a thread or a plain simple signal handler). ||
||[[https://pypi.python.org/pypi/pdb-clone|pdb-clone]] || ||Remote process inspector. Uses GDB to inject code. ||
||[[http://www.aminus.net/wiki/PyConquer|PyConquer]] ||Any ||Trace hook logger which outputs each thread in its own "swimlane" to make multithreaded analysis easier. Can also time calls (naively) and watch variables. ||
||[[https://github.com/albertz/pydbattach|pydbattach]] || ||Remote process inspector. Uses GDB to inject code. ||
||[[http://pypi.python.org/pypi/pyrasite|pyrasite]] ||Mac OS X, Linux ||Library and a set of tools for injecting code into running Python programs to monitor, analyze, introspect, and alter running Python programs easily. Uses GDB to inject code. ||
||[[https://github.com/google/pyringe|pyringe]] || ||Remote process inspector. Uses GDB to inject code. ||
||[[https://github.com/alonho/pystuck|pystuck]] || ||Remote process inspector. Uses GDB to inject code. Uses [[https://github.com/tomerfiliba/rpyc|rpyc]] for communication. ||
||[[http://code.google.com/p/pythontracer/|pythontracer]] || || ||
||[[https://github.com/GrahamDumpleton/wsgi-shell|wsgi-shell]] || ||Remote process inspector (using an active component, a thread). ||
||[[https://github.com/ionelmc/python-hunter|hunter]] || ||A flexible code tracing toolkit. Can print out code and variables, and filter the events. ||
||[[https://github.com/gruns/icecream/|icecream]] || ||Sweet and creamy print debugging -- inspect variables, expressions, and code execution with a single, simple function call. ||
||[[https://birdseye.readthedocs.io|birdseye]] || ||Graphical Python debugger which lets you easily view the values of all evaluated expressions ||
||[[https://github.com/gergelyk/peepshow|peepshow]] || ||Provides two utilities: '''show''': a lightweight function that prints name and value of your variable(s) to the console, and '''peep''': featured, interactive interface for data inspection. ||
||[[https://github.com/cool-RR/PySnooper/|PySnooper]] || ||Never use print for debugging again. !PySnooper is a poor man's debugger. If you can't use a real debugger for some reason or other, and you're resorting to adding print statements to your code, this is for you. Add just one decorator line to your functions, and you get a complete log of all the lines that ran in the function and all the variables that were changed. ||
||[[https://github.com/alexmojaki/snoop|snoop]] || ||An improved version of !PySnooper. ||
||[[https://github.com/gaogaotiantian/viztracer|VizTracer]] || Unix, Windows, Mac OS X ||Trace and visualize your function execution on a graphical UI, with filters and arbitrary data logging support. Featured with a virtual debugger like pdb to debug your log of execution ||

Add your useful tools here -- editors, debuggers and other utils that really help with the process.

Debuggers

Name

Platform

Notes

pdb

All

The standard library debugger, part of all Python installations.

pudb

Unix,Mac OS X

A visual, console-based, full-screen debugger, designed as a more comfortable drop-in replacement for pdb. (also supports IPython)

PdbRcIdea

All

A .pdbrc for Python's standard debugger, pdb, which allows you to run arbitrary Python commands on pdb startup.

gdb

*nix

See DebuggingWithGdb

trepan2, trepan3k

Unix, Windows, Mac OS X

A rewrite of pdb/pydb with closer compliance to gdb . This is the only debugger that I (rocky) am aware of that uses decompilation technology (also written by me), so that you can debug CPython bytcode files where no source code is available. Decompilation is also used to provide sensible debugging inside exec strings, and more accurate position information when stopped or in showing a stack trace. In addition to the features of pdb/pydb, the debugger supports syntax coloring (via pygments), has extensive on-line help (in rendered reStructuredText), readthedocs documentation, command completion, a smarter eval, debugger macros written in Python, and more.

pdb++

Unix, Windows, Mac OS X

An extension of the pdb module of the standard library. It is meant to be fully compatible with its predecessor, yet it introduces a number of new features to make your debugging experience as nice as possible.

Python-pydebug

Unix, Windows, Mac OS X

A set of debugging decorators which respects Django's settings in case the package is withing a Django project. It allows a user to PDB into a function, do a Line profiler, inspect an object and Disasemble the function.

winpdb-reborn

Windows, Linux

Fork of winpdb after this was unmaintained

ipdb

All

Improved version of pdb that is part of IPython but also can be used separately

madbg

linux, python>=3.7

fully-featured remote debugger: attaching to running programs, especially usefull to debug programms with TUI

Debuggers that are no longer maintained:

Name

Platform

Notes

HAP Python Remote Debugger

Windows

A python IDE with remote debugging capability.

Winpdb and Rpdb2

Unix,Linux,Windows

An advanced python debugger, with support for smart breakpoints, multiple threads, namespace modification, embedded debugging, encrypted communication and speed of up to 20 times that of pdb.

pydb

Unix, Windows, OS X

Obsolete. An expanded version of pdb loosely based on the gdb command set. The debugger supports thread debugging, signal handling, non-interactive tracing, and much more. This was written in the era of Python 2.4-2.6. See trepan3k below.

Xpdb

Unix

pdb extension with curses module that adds console window with source code.

JpyDbg

Mac OS X, OS/2, Unix, VMS and Windows

Both a CPYTHON and a JPYTHON(JYTHON) debugging framework which has been integrated inside Jedit as a standard jedit pluggin.

pyDebug

Unix,Windows

Debugger for Python programs with a graphical user interface. It uses bdb (part of stdlib) but adds a GUI and has some powerful features like object browser, windows for variables, classes, functions, exceptions, stack, conditional breakpoints, etc.

rpdb

Unix, Windows,Mac OS X

(Predecessor of rpdb2 and winpdb) rpdb.py improves pdb's usability and adds support for remote debugging, multiple threads debugging, post mortem of unhandled exceptions, and for debugging of embedded scripts.

DDD

Unix

Graphical front-end for command-line debuggers such as GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger, GNU Make debugger, or the Python debugger. DDD displays data structures as graphs and plots. A deprecated version of pydb comes with this package. For GNU make debugging, use ddd-test5

Pyclewn

*nix, Windows

Pyclewn allows you to use Vim as a front end to a debugger. Pyclewn currently supports gdb and pdb.

IDEs with Debug Capabilities

Since debugging is one of the the functions that usually helps make up the "Integrated" in "Integrated Development Environment", expect that most IDEs will have debugging capability even if not listed explicitly here.

Thonny

Mac OS X, Linux, Windows

For teaching/learning programming. Focused on program runtime visualization. Provides stepping both in statements and expressions, no-hassle variables view, separate mode for explaining references etc.

PyDev

Mac OS X, Linux, Windows

Allows debugging multiple threads in Jython and Python (It is featured as a 'Python IDE' plugin for Eclipse).

Wing IDE

Mac OS X, Linux, Windows

An IDE that can debug multiple threads and multiple processes, including code launched from the IDE or code launched externally, running under CPython and Stackless Python. The GUI includes a Debug Probe, which is a Python shell running in the context of the paused debug process. The IDE's debugger also features value watching (by symbolic path, object reference, or a combination), conditional breakpoints, move program counter, debugging of tests running in the integrated unit testing tool, special support for Django, and How-Tos for debugging code running under Flask, web3py, Django, Google App Engine, wxPython, PyQt, Tkinter, Blender, Maya, NUKE, and many other packages.

Komodo IDE

Mac OS X, Linux, Windows

!PyCharm IDE

Mac OS X, Linux, Windows

PyCharm's integrated debugger works for Python and Jython, supports debugging of multiple threads, remote debugging, allows debugging Django, Google App Engine applications and unit tests. The debugger features various breakpoints, stepping modes, frames view, watches, evaluate expression tool and a debug console. Conditional and Exception breakpoint types are available for more precise control. Debug console allows executing any Python statements in the context of the process being debugged while stopped at a breakpoint.

PyScripter

Windows

Pyshield

Linux, Windows

An IDE tool used to edit, debug Python scripts, publish encrypted scripts, build a standalone executable file, and make installation in various forms(.msi, .tar.gz, .rpm, .zip, .tar.bz2). It includes an editor simulating Emacs python-mode, a GUI debugger simulating GDB, a project view used to manage scripts, modules, extensions, packages and platform specific data files.

Python Tools for Visual Studio

Windows

Supports Python (any implementation with sufficient sys.settrace capabilities) and IronPython .NET debugging. Includes MPI cluster debugging, breakpoints, conditional breakpoints, locals, watch, and immediate windows, step into/out/over, break on exception, and break on unhandled exception.

Visual Studio Code

Mac OS X, Linux, Windows

Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and MacOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is free and open-source, although the official download is under a proprietary license. Supports Python debugging via extensions.

Mu

Mac OS X, Linux, Windows

A simple Python editor for beginner programmers, providing a simple interface depending on the project type. It includes visual debugging as first citizen.

Jupyter

Web (Mac OS X, Linux, Windows)

Web UI for Notebooks in Python and other programming language, has a visual debugger intregrated.

Profilers

cProfile

All

profiler in the Python standard library

profile

All

pure Python module, in the Python standard library

pptop

Remote process inspector/profiler for Python 2/3. Uses GDB to inject code.

pyspy

Easy to use sampling profiler

scalene

high-performance, high-precision CPU and memory profiler

yappi

thread&coroutine aware

line_profiler

memory_profiler

pympler

Development tool to measure, monitor and analyze the memory behavior of Python objects

Memray

Mac OS X, Linux, Windows

memory profiler for Python

Special-purpose tools

FirePython

GoogleAppEngine + Firefox

FirePython is a python logger console integrated into Firebug (similar to !FirePHP). See http://appengine-cookbook.appspot.com/recipe/firepython-logger-console-inside-firebug/

manhole

Mac OS X, Linux

Remote process inspector (using an active component, using a thread or a plain simple signal handler).

pdb-clone

Remote process inspector. Uses GDB to inject code.

PyConquer

Any

Trace hook logger which outputs each thread in its own "swimlane" to make multithreaded analysis easier. Can also time calls (naively) and watch variables.

pydbattach

Remote process inspector. Uses GDB to inject code.

pyrasite

Mac OS X, Linux

Library and a set of tools for injecting code into running Python programs to monitor, analyze, introspect, and alter running Python programs easily. Uses GDB to inject code.

pyringe

Remote process inspector. Uses GDB to inject code.

pystuck

Remote process inspector. Uses GDB to inject code. Uses rpyc for communication.

pythontracer

wsgi-shell

Remote process inspector (using an active component, a thread).

hunter

A flexible code tracing toolkit. Can print out code and variables, and filter the events.

icecream

Sweet and creamy print debugging -- inspect variables, expressions, and code execution with a single, simple function call.

birdseye

Graphical Python debugger which lets you easily view the values of all evaluated expressions

peepshow

Provides two utilities: show: a lightweight function that prints name and value of your variable(s) to the console, and peep: featured, interactive interface for data inspection.

PySnooper

Never use print for debugging again. PySnooper is a poor man's debugger. If you can't use a real debugger for some reason or other, and you're resorting to adding print statements to your code, this is for you. Add just one decorator line to your functions, and you get a complete log of all the lines that ran in the function and all the variables that were changed.

snoop

An improved version of PySnooper.

VizTracer

Unix, Windows, Mac OS X

Trace and visualize your function execution on a graphical UI, with filters and arbitrary data logging support. Featured with a virtual debugger like pdb to debug your log of execution

PythonDebuggingTools (last edited 2022-05-01 20:51:18 by Nudin)

Unable to edit the page? See the FrontPage for instructions.