eve
everbug
pypi i everbug
eve

everbug

Django debug tool for browser

by Igor Tolkachnikov

1.24 (see all)License:MITCategories:Django Debugging
pypi i everbug
Readme

Everbug - Debugger for Django projects

The Everbug is a lightweight Django middleware for Chrome extension with easy install. One of the advantages: the response body of target page remains clean and unchanged.

Special summary:

  • Database queries with explains (Multiple database support)
  • Context variables
  • Profiles functions (cProfile through decorator)
  • Support ajax requests

Installing

For Django:

::

Run "pip install everbug". Add "everbug" to your INSTALLED_APPS in settings.py. Append "everbug.middleware.Tracer" to MIDDLEWARE or MIDDLEWARE_CLASSES in settings.py.

For Chrome: chrome_ext For Firefox: firefox_ext

Usage

“Context” works for any view which has a “context_data”. “Queries” works as-is for all databases in “DATABASES” section. “Profile” works through decorator (based on builtin cProfile). By default, profile output is truncated to 20 lines.

Example usage:

::

from everbug.shortcuts import profile

@profile def sample_method(): // some code here ...

Call @profile with argument for full view, for example:

::

@profile(short=False) def sample_method(): // some code here ...

Running the tests

::

docker-compose up -d docker exec -it everbug tox

Requirements

| Python >= 3.5 | Django >= 1.11

License

This project is licensed under the MIT License - see the LICENSE_ file for details

.. _chrome_ext: https://chrome.google.com/webstore/search/everbug .. _firefox_ext: https://addons.mozilla.org/ru/firefox/addon/everbug .. _LICENSE: LICENSE

GitHub Stars

115

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.24
4yrs ago
1.23
4yrs ago
No tutorials found
Add a tutorial