Skip to main content

A package which provides an interactive HTML debugger for Pyramid application development

Project description

pyramid_debugtoolbar provides a debug toolbar useful while you’re developing your Pyramid application.

This code requires the Pyramid trunk (aka 1.1.1dev); no released version of Pyramid (e.g. 1.0 or 1.1) will run it.

Note that pyramid_debugtoolbar is a blatant rip-off of Michael van Tellingen’s flask-debugtoolbar (which itself was derived from Rob Hudson’s django-debugtoolbar). It also includes a lightly sanded down version of the Werkzeug debugger code by Armin Ronacher and team.

Demonstration

For a demonstration:

  • Create a virtualenv:

    $ virtualenv2.6 --no-site-packages env26
  • Clone the Pyramid trunk:

    $ git clone git@github.com:Pylons/pyramid.git
  • Install the Pyramid trunk into the virtualenv:

    $ cd pyramid
    $ $VENV/bin/python setup.py develop
  • Clone the pyramid_debugtoolbar trunk:

    $ git clone git@github.com:Pylons/pyramid_debugtoolbar.git
  • Install the pyramid_debugtoolbar trunk into the virtualenv:

    $ cd pyramid_debugtoolbar
    $ $VENV/bin/python setup.py develop
  • Install the pyramid_debugtoolbar/demo package into the virtualenv:

    $ cd demo
    $ $VENV/bin/python setup.py develop
  • Run the pyramid_debugtoolbar package’s demo/demo.py file using the virtualenv’s Python:

    $ $VENV/bin/python demo.py

You will see a page full of test options to try when you visit http://localhost:8080.

0.5 (2011-08-18)

0.4 (2011-08-18)

  • Change the default value for debugtoolbar.intercept_redirects to false. Rationale: it confuses people when first developing if the application they’re working on has a home page which does a redirection.

0.3 (2011-08-15)

  • Request vars panel would cause a UnicodeDecodeError under some circumstances (see https://github.com/Pylons/pyramid_debugtoolbar/issues/9).

  • Dynamicize URLs for SQLAlchemy subpanels.

  • Require “pyramid>=1.2dev” for install; the trunk is now “1.2dev” instead of “1.1.1dev”.

  • Requires trunk after 2011-08-14: WSGIHTTPException “prepare” method and alias param to add_tween, BeforeRender event has no “_system” attr.

  • Fix memory leak.

  • HTML HTTP exceptions now are rendered with the debug toolbar div.

  • Added NotFound page to demo app and selenium tests.

0.2 (2011-08-07)

  • Add SQLAlchemy “explain” and “select” pages (available from the SQLALchemy panel next to each query shown in the page).

  • Requires newer Pyramid trunk (checked out on 2011-08-07 or later).

  • Add a link to the SQLAlchemy demo page from the demo app index page.

0.1 (2011-07-30)

  • Initial release.

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

pyramid_debugtoolbar-0.5.tar.gz (1.5 MB view details)

Uploaded Source

File details

Details for the file pyramid_debugtoolbar-0.5.tar.gz.

File metadata

File hashes

Hashes for pyramid_debugtoolbar-0.5.tar.gz
Algorithm Hash digest
SHA256 7a4b6ec55aa5d72e72b0804c47bead3c77fe8ab9e439dca00033cfa936b3b8b7
MD5 fe72bcd836dafe1f8b6fa8880a583be6
BLAKE2b-256 e0db491d9fd63230a9d1d2d2a77312c4b6248bb703bf7065bf6ee2f1469ddaf4

See more details on using hashes here.

Supported by

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