Skip to main content

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.

Release files for tgext.debugbar 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tgext.debugbar 0.6.1
File Size Uploaded
tgext_debugbar-0.6.1.tar.gz 58.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tgext.debugbar 0.6.1
File Interpreter ABI Platform
tgext_debugbar-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 123.2 kB

Release files / tgext_debugbar-0.6.1.tar.gz

Download URL tgext_debugbar-0.6.1.tar.gz
Size 58.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3dc95a6ee3fa2da0a6a7d5c5b41484312a1070b34ff18e219cc44f3f4c418b2a
BLAKE2b-256 checksum
How to use checksums
5bc50b2f4b58f609fbb0ea859127c5f5d695222acc50e29ef366dea50c2d0eef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release files / tgext_debugbar-0.6.1-py3-none-any.whl

Download URL tgext_debugbar-0.6.1-py3-none-any.whl
Size 64.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9c568093187600ca098d92843b6ee7e145b30702a1383272cc6c3fff3506b0a
BLAKE2b-256 checksum
How to use checksums
1bc12e898e7cf6310a59e4c46801bbc332dce56c53c961d8ea75ce8be0d0e2cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page