Skip to main content

Slightly extended and sanitized Python debugger -- Debugger with Zope support

Project description

Pdb, the Python debugger, has severe limitations (apart from some bugs). This extension tries to get rid of some of them.

Things done

  • setting breakpoints

    Allow filename to specify a module as well.

  • exception display

    The current display of an exception is almost useless. In the Pdb code, exceptions are displayed at 4 places – and each of them uses slightly different code (whow!).

    We consolidate this into a single function _handle_exception and present the exception with traceback.format_exception_only. We also store the exception in the Pdb instance. A new command exception (abbreviated e) presents this stored exception value in a way similar to the where command.

  • where command improvements

    • each frame identifies its level (the top frame is at level 0, the one below it at level 1, etc…)

    • the current frame is marked as such

    • where gets optional arguments number and end

      number controls how many frames are displayed (default: maxint), end at what level the display ends, negative numbers count from the bottom (default: -1, i.e. the bottom frame).

  • new command frame level (abbr: f)

    switch to call frame at level

    without argument, provide info about current frame

  • allow to customize the display of the where command and of tracebacks e.g. to display additional debugging information as provided by Zope (for example).

    This can be done by customizing getAdditionalFrameInfo.

Things not yet done

  • Returning from debug occasionally returns to stop rather than where we entered the recursive debugger. This is often nasty (and should be fixed)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dm.pdb-1.0.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file dm.pdb-1.0.1.tar.gz.

File metadata

  • Download URL: dm.pdb-1.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dm.pdb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c095a16d592ac7908e8b4493a44b6f66cfb8eea2bb4497eda02cb5edab053c14
MD5 ae7be4abda55539d71251a242d758462
BLAKE2b-256 d4b0640184c1b28314f5d3410b0e6b42cfdbd37d970573db8035b839736725a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page