Debug statements include function name

Category: Python - Education

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 that can direct the output to log files, e-mails, stdout, etc. Date: 21 January, 2012


Debug Statements - Function Name - Debugging Script - Debug - Statements - Function

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This scripts shows you how to obtain the name of a method or a function from within the running method/function.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


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.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This function makes it easier to use the timeit module from the interactive interpreter.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script helps you in adding new format specifiers to the logging module.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script is a simple embedded multiline python interpreter built around raw_input().

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script acts like a stepping debugger to diagnose and fix your programs.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Since Python 2.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script provides a basic undo mechanism.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script produces a summary of the data, grouped by the given key (default: the first item), and giving totals of the given value (default: the second item).

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All