Skip to main content

Provides debug toolbar for TurboGears2

Project description

About Debug Toolbar

tgext.debugbar provides a Debug Toolbar for TurboGears2 framework.

Exposed sections are:

  • Controller and Rendering time reporting

  • Controller Profiling

  • Request Parameters, Headers, Attributes and Environ

  • SQLAlchemy Queries reporting and timing

  • Explain and Show result of performed SQLAlchemy queries

  • List mounted controllers, their path and exposed methods

  • Log Messages

Installing

tgext.debugbar can be installed both from pypi or from bitbucket:

easy_install tgext.debugbar

should just work for most of the users

Using it with Pluggables

Like any other pluggable extension, the debugbar can be activated through the pluggables interface inside your app_cfg.py:

from tgext.pluggable import plug
plug(base_config, 'tgext.debugbar')

The debugbar will then check for the debug config option disabling itself when it is false.

Using it without pluggable

While the pluggables interface makes convenient to pass options to the debugbar, you might want to avoid using it for various reasons. In such cases you can enable the debugbar by adding the following lines to your project app_cfg.py:

from tgext.debugbar import enable_debugbar
enable_debugbar(base_config)

Enabling Logs

Whenever your response is JSON or an ajax request, or any other kind of content which is not a plain HTML page, the debugbar bar is not injected inside your response. This is to prevent it from messing with your output when it would probably break things.

There are cases when you might be interested in getting access to some informations from the debugbar even when your output is not HTML. For example your might be interested in knowing which queries have been performed to retrieve your JSON response.

To enable logging such informations you can pass the enable_logs=True option to the plug call which activates the debugbar.

Inventing Mode

The DebugBar provides the inventing mode, such feature is inspired by the Inventing On Principle to speed up experimenting and prototyping with your website. Whenever the inventing mode is enable your web page will automatically update when you change it, being it a controller, template or css change.

The inventing mode can be enabled by passing the inventing=True option to the plug call which activates the debugbar.

If you want to disable inventing mode for CSS files, you can enable the inventing mode and then pass the inventing_css=False option.

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

tgext_debugbar-0.6.0.tar.gz (58.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgext_debugbar-0.6.0-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

Details for the file tgext_debugbar-0.6.0.tar.gz.

File metadata

  • Download URL: tgext_debugbar-0.6.0.tar.gz
  • Upload date:
  • Size: 58.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for tgext_debugbar-0.6.0.tar.gz
Algorithm Hash digest
SHA256 960ef654d4cc536881f77fd4c2d0caf407b68dbfbe2bcd2da4c50779335a52ca
MD5 a701e5126d4899a2828a94f825bd3bfd
BLAKE2b-256 d1950d4962be871a768f638a031a136300b10c0b672efcf3fffa2ae5ba8b69bb

See more details on using hashes here.

File details

Details for the file tgext_debugbar-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: tgext_debugbar-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 64.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for tgext_debugbar-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e7cd103b7c9c558fe914eb1042e6807183b421520d505f79ced263ec818e935
MD5 233e03ab17a49774cc47ba7b35e2c6c2
BLAKE2b-256 a793bbcf0150345db2ffdb746ce6710cb6b39d66ba00c1214b26897b1157e0d4

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