Skip to main content

A debug server for WSGI apps.

Project description

build status License

OhOh is a debugger for your WSGI applications. Using OhOh, you can inspect the stack frames of a wsgi app that’s thrown an exception.


Use this command to serve your wsgi app in debug mode:

> ohoh "package.module:wsgi_app" -s localost:5000

For a full range of options, see ohoh -h

OhOh provides a plug-in for the httpie utility. You can install httpie using pip install httpie. Once you send a request that results in an exception, you will enter the debugger automatically:

> http localhost:5000
HTTP/1.0 500 Internal Server Error
Date: Fri, 24 Jul 2015 23:41:20 GMT
Server: WSGIServer/0.2 CPython/3.4.2
Content-Type: text/plain; charset=utf-8
OhOh-Debug-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1N [Truncated (5061 chars) ...]
Location: http://localhost:5000/ohoh-debug/
Content-Length: 454

Traceback (most recent call last):
  File "c:\dev\ohoh\build\lib\ohoh\", line 57, in __call__
    return self._app(environ, start_response)
  File "tests\", line 6, in simple_err_app
    path.join("foo bar", 475564)
  File "C:\Python34\lib\", line 110, in join
    p_drive, p_path = splitdrive(p)
  File "C:\Python34\lib\", line 159, in splitdrive
    if len(p) > 1:
TypeError: object of type 'int' has no len()
OhOh Interactive Debugger v0.1.dev28+n8ec9121
(odb) up
> c:\python34\lib\
-> p_drive, p_path = splitdrive(p)


The following commands are supported by the command interpreter (you can type help at the debugger prompt for online help with commands):



Client commands


Exit the debugger.


View the current debug server token.


View or set the url to which debug requests are sent.


View the version number of the debugger.

Debug commands


Execute a one-line statement in the current context.


Print the argument list to the current function.


Print the value of an expression.


Pretty print the value of an expression.


Print the stack trace, with the most recent call last.


Move up one frame in the stack.


Move down one frame in the stack.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions (23.4 kB view hashes)

Uploaded source

ohoh-0.1.0.tar.gz (15.6 kB view hashes)

Uploaded source

Built Distributions

ohoh-0.1.0-py3-none-any.whl (11.7 kB view hashes)

Uploaded py3

ohoh-0.1.0-py2-none-any.whl (14.9 kB view hashes)

Uploaded py2

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page