Debugging Script
This script allows you to use separate loggers to make specific sub-system debugging easier. You don't even have to pass the logger objects between modules; just use getLogger("my.hierarchical.name"). Messages sent to that logger would be handled by itself, then (if not removed by filters) by...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Using the logging module Download |
This script is a simple embedded multiline python interpreter built around raw_input(). It interrupts the control flow at any given location with 'exec prompt' and gives control to the user. Allways runs in the current scope and can even be started from the pdb prompt in debugging mode.It...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): Simple multiline interactive interpreter Download |
A free integrated development environment (IDE) for Perl with multiple tools for writing and debugging your scripts. It features multiple CGI scripts for editing, running, and debugging; multiple input files; full server simulation; queries created from an internal Web browser or query editor;...
Platforms: Windows
License: Freeware | Size: 3.29 MB | Download (910): Perl Express Download |
This script is a useful wrapper around the python command line shell to allow editing of the last typed in lines of code in an external editor.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Editable buffer for the Python shell Download |
This script allows you to run the Twisted reactor event loop in a thread alongside an IPython shell, for introspecting a running Twisted process.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Integrating Twisted reactor with IPython Download |
This script contains a function to use the timeit module from a script, creating a nice overview of the runtimes of one or more code snippets. All command line flags that the timeit module accepts can be used. The output can easily be customized.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (49): Timeit function Download |
Variant assertion script is Eiffel like loop variant assertion.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Variant assertion Download |
When Python runs a script and an uncatched exception is raised, a traceback is printed and the script is terminated. Python2.1 has introduced sys.excepthook, which can be used to override the handling of uncaught exceptions. This script allows to automatically start the debugger on an unexpected...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): Automatically start the debugger on an exception Download |
This script acts like a stepping debugger to diagnose and fix your programs. It contains functions for log state and execution flow.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Trace expressions and comments in debug mode Download |
This script defines the whoaminow() function that can be used inside a function to determine, at the time it is called, the name under which that function has been invoked.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Determining the current functions name Download |
This script allows a user to place debug messages, error messages and standard messages throughout a program. The function name and line number will be added to each debug and error message before it is printed out. In addition, each of these messages can be passed to multiple handler objects...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Debug statements include function name Download |
This script helps you in adding new format specifiers to the logging module. In this example, it's for the user name and the name of the function that logged the message.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): Extending the 'logging' module Download |
You now that there is garbage in your program but you don't know what exactly. In this script additionaly to the normal debugging output of gc the object itself are shown to get an idea where the leak may be.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Debug with garbage collection Download |
This script prints a nicely formatted overview of an object, including _everything_ in the object's `dir'. This is great when programming interactively.It is more comprehensive than help(), prettier than dir().
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Dump all the attributes of an object Download |
Since Python 2.2 there is a handy function in the Garbage Collection Module called get_objects(). It gives back a list of all objects that are under control of the Garbeage Collector. This script implements a way you can extract informations of your application in runtime.The example dumps a list...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Debug runtime objects using gc.get_objects() Download |
In most languages with closures, it is possible to change a closed-over value and have the change visible in other closures which share a reference to the same variable. Python's syntax makes this impossible. Putting your changeable values inside a mutable object like a list-- it may occasionally...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): Changing a closed-over value Download |
This function makes it easier to use the timeit module from the interactive interpreter. You should just specify function with (optional) arguments to run, optional number of runs, and optional name of module (which if not specified defaults to the name of the function).
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Convenience 'timeit' function Download |
When running unit tests, using the verbose flag often provides an extra level of protection against mistakes. When running from the command line, this simply means adding the -v option. If you use an IDE, matters become more complicated. While you can often set your IDE to pass in the -v option...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Force verbose mode for unittests in an IDE Download |
The logpyl class implements basic logging functionality for Python programs. A logpyl log consists of three files. The log file contains the events logged to a logpyl object. The metadata file contains information about the log, such as creation date, modification date, and name. The checksum...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): Logpyl Download |
The Python debugger has not the bash-like tab completion that you can add to the interpreter. Fortunately pdb's interactive prompt is an instance of Cmd, so you can write our own completion function.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Sane tab completion in pdb Download |