Package logilab-common-0 :: Package 36 :: Package 1 :: Module debugger
[frames] | no frames]

Module debugger

source code

Customized version of pdb's default debugger.

- sets up a history file
- uses ipython if available to colorize lines of code
- overrides list command to search for current block instead
  of using 5 lines of context

:copyright: 2000-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: General Public License version 2 - http://www.gnu.org/licenses

Classes
  Debugger
custom debugger
Functions
 
colorize(source, start_lineno, curlineno) source code
 
getsource(obj)
Return the text of the source code for an object.
source code
 
pm()
use our custom debugger
source code
Variables
  readline = None
Function Details

getsource(obj)

source code 
Return the text of the source code for an object.

The argument may be a module, class, method, function, traceback, frame,
or code object.  The source code is returned as a single string.  An
IOError is raised if the source code cannot be retrieved.