Package logilab-common-0 :: Package 39 :: Package 0 :: 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)
colorize and annotate source with linenos...
source code
 
colorize_source(source)
colorize given source
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
hash(x)
Function Details

colorize(source, start_lineno, curlineno)

source code 
colorize and annotate source with linenos
(as in pdb's list command)

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.