everbug

Django debug tool for browser

115
5
Python

Everbug - Debugger for Django projects

The Everbug is a lightweight Django middleware for Chrome/Firefox 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

Demo

Demo

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 browser:

Usage

Context variables displayed as-is, except admin views, DRF views and all views without a context_data. Queries works for all databases and requests (include ajax) in “DATABASES” section. Profile works for all methods 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