##// END OF EJS Templates
Added -pydb command line switch to enable pydb, pydb is now disabled as default
vivainio -
Show More
@@ -15,7 +15,7 b' details on the PSF (Python Software Foundation) standard license, see:'
15
15
16 http://www.python.org/2.2.3/license.html
16 http://www.python.org/2.2.3/license.html
17
17
18 $Id: Debugger.py 2902 2007-12-28 12:28:01Z vivainio $"""
18 $Id: Debugger.py 2913 2007-12-31 12:42:14Z vivainio $"""
19
19
20 #*****************************************************************************
20 #*****************************************************************************
21 #
21 #
@@ -44,18 +44,20 b' from IPython.excolors import ExceptionColors'
44 # See if we can use pydb.
44 # See if we can use pydb.
45 has_pydb = False
45 has_pydb = False
46 prompt = 'ipdb> '
46 prompt = 'ipdb> '
47 try:
47 #We have to check this directly from sys.argv, config struct not yet available
48 import pydb
48 if '-pydb' in sys.argv:
49 if hasattr(pydb.pydb, "runl") and pydb.version>'1.17':
49 try:
50 # Version 1.17 is broken, and that's what ships with Ubuntu Edgy, so we
50 import pydb
51 # better protetct against it.
51 if hasattr(pydb.pydb, "runl") and pydb.version>'1.17':
52 has_pydb = True
52 # Version 1.17 is broken, and that's what ships with Ubuntu Edgy, so we
53 from pydb import Pdb as OldPdb
53 # better protect against it.
54 except ImportError:
54 has_pydb = True
55 pass
55 except ImportError:
56 print "Pydb (http://bashdb.sourceforge.net/pydb/) does not seem to be available"
56
57
57 if has_pydb:
58 if has_pydb:
58 from pydb import Pdb as OldPdb
59 from pydb import Pdb as OldPdb
60 #print "Using pydb for %run -d and post-mortem" #dbg
59 prompt = 'ipydb> '
61 prompt = 'ipydb> '
60 else:
62 else:
61 from pdb import Pdb as OldPdb
63 from pdb import Pdb as OldPdb
@@ -6,7 +6,7 b' Requires Python 2.1 or better.'
6
6
7 This file contains the main make_IPython() starter function.
7 This file contains the main make_IPython() starter function.
8
8
9 $Id: ipmaker.py 2899 2007-12-28 08:32:59Z fperez $"""
9 $Id: ipmaker.py 2913 2007-12-31 12:42:14Z vivainio $"""
10
10
11 #*****************************************************************************
11 #*****************************************************************************
12 # Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu>
12 # Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu>
@@ -161,6 +161,7 b" object? -> Details about 'object'. ?object also works, ?? prints more."
161 'debug! deep_reload! editor=s log|l messages! nosep '
161 'debug! deep_reload! editor=s log|l messages! nosep '
162 'object_info_string_level=i pdb! '
162 'object_info_string_level=i pdb! '
163 'pprint! prompt_in1|pi1=s prompt_in2|pi2=s prompt_out|po=s '
163 'pprint! prompt_in1|pi1=s prompt_in2|pi2=s prompt_out|po=s '
164 'pydb! '
164 'pylab_import_all! '
165 'pylab_import_all! '
165 'quick screen_length|sl=i prompts_pad_left=i '
166 'quick screen_length|sl=i prompts_pad_left=i '
166 'logfile|lf=s logplay|lp=s profile|p=s '
167 'logfile|lf=s logplay|lp=s profile|p=s '
@@ -12,6 +12,9 b''
12 * Store _ip in user_ns instead of __builtin__, enabling safer
12 * Store _ip in user_ns instead of __builtin__, enabling safer
13 coexistence of multiple IPython instances in the same python
13 coexistence of multiple IPython instances in the same python
14 interpreter (#197).
14 interpreter (#197).
15
16 * Debugger.py, ipmaker.py: Need to add '-pydb' command line
17 switch to enable pydb in post-mortem debugging and %run -d.
15
18
16 2007-12-28 Ville Vainio <vivainio@gmail.com>
19 2007-12-28 Ville Vainio <vivainio@gmail.com>
17
20
@@ -25,4 +25,11 b' Changes made since version 0.8.1 was released:'
25
25
26 * %pushd/%popd behave differently; now "pushd /foo" pushes CURRENT directory
26 * %pushd/%popd behave differently; now "pushd /foo" pushes CURRENT directory
27 and jumps to /foo. The current behaviour is closer to the documented
27 and jumps to /foo. The current behaviour is closer to the documented
28 behaviour, and should not trip anyone. No newline at end of file
28 behaviour, and should not trip anyone.
29
30 Version 0.8.3
31 =============
32
33 * pydb is now disabled by default (due to %run -d problems). You can enable
34 it by passing -pydb command line argument to IPython. Note that setting
35 it in config file won't work. No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now