IPython pdb

Integrate IPython's enhanced features like tab completion, syntax highlighting, and better tracebacks into the standard Python debugger (pdb).

Visit IPython pdb
A screenshot of IPython pdbVisit

ipdb integrates the powerful features of the IPython shell into Python's standard pdb debugger. This brings significant improvements to your debugging workflow, including:

  • Tab completion for variables and methods.
  • Syntax highlighting for better code readability.
  • Improved tracebacks that are easier to understand.
  • Enhanced introspection capabilities.

Using ipdb is straightforward. Simply import it and use ipdb.set_trace() to set a breakpoint anywhere in your code. You can also use ipdb.pm() for post-mortem debugging after an exception.

import ipdb
ipdb.set_trace() # Set a breakpoint

# Or use post-mortem debugging
ipdb.pm()

Configuration options allow setting the number of context lines displayed via config files or environment variables. For debugging exceptions automatically, use the launch_ipdb_on_exception context manager or the @iex decorator.

Categories:

Tags:

Share:
Featured tools:

Similar to IPython pdb:

Databases for lazy people. Simple SQL data handling.
ORMsPython
Handle SQL data stores easily with implicit table creation, bulk loading, and transaction support. Makes database operations feel like working with JSON.
Build better web apps more quickly with less code.
Full-stack Web FrameworksPython
High-level Python web framework for rapid development and clean design. Handles common web development tasks, focusing on speed, security, and scalability.
Visualize and debug distributed workflows.
DebuggingTracing
Monitor and troubleshoot request flows across complex distributed systems. Identify bottlenecks, trace errors, and analyze service dependencies.
Compress and transform data buffers efficiently in Python.
Data CompressionPython
Compress and transform data buffers in Python for efficient data storage and communication. Supports various codecs and integrates with array libraries.
Generate Python API docs instantly from your code.
DocumentationPython
Automatically generate API documentation for Python projects from existing docstrings. Supports type hints, cross-linking, and common docstring formats.
A small, expressive Python ORM for simpler database interactions.
ORMsPython
Build Python applications with a simple, expressive ORM. Supports PostgreSQL, MySQL, SQLite, and CockroachDB. Features easy model definition and powerful querying.
Simple, fast, file-based key-value storage for Python.
DatabasesPython
Store key-value data easily in Python with this lightweight, file-based library. Offers simple API, fast performance, and asynchronous support.
Query databases naturally with Python generators.
ORMsPython
Write database queries using Python generator expressions. Translates Python syntax trees to SQL for SQLite, MySQL, PostgreSQL, and Oracle. Features an ERD editor.
Visual Python debugging, right in your terminal.
DebuggingPython
Debug Python code visually within your console. Offers a lightweight, keyboard-driven interface with syntax highlighting, stack traces, and variable inspection.

Command Menu