Debug runtime objects using gc.get_objec

Category: Python - Education

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 of all higher level objects. At first it gets the list of all objects, than tests if they are higher level and in the end it it tests if it is not in the list of objects that are more or less always there. Date: 06 January, 2012


Runtime Objects - Debug Objects - Debugging Script - Debugging - Script - Objects

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

Since Python 2.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


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


This script allows a user to place debug messages, error messages and standard messages throughout a program.

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


Delete directories except special administration script allows you to remove non-empty directories leaving specified directories.

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


This program interfaces the 3270 HLLAPI library of an Italian 3270 emulator using the ctypes library.

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