Skip to content

Instantly share code, notes, and snippets.

View zdxerr's full-sized avatar

Christoph Schniedermeier zdxerr

  • dSPACE GmbH
  • Paderborn, Germany
  • 15:37 (UTC +02:00)
View GitHub Profile
@naftaliharris
naftaliharris / trypy
Last active January 2, 2016 09:39
An enhancement to the "python" executable that automatically launches you into a debugger if your code throws an exception.
#!/bin/bash
# An enhancement to the "python" executable that automatically launches you into the python debugger on error.
#
# Use it like you would the "python" executable, for example:
# $ trypy somefile.py
# or
# $ trypy somefile.py arg1 arg2
#
# EXAMPLE: