credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #00016
[Merge] lp:~credativ/openobject-server/trunk-imp-ipdb into lp:openobject-server
Dmitrijs Ledkovs (credativ) has proposed merging lp:~credativ/openobject-server/trunk-imp-ipdb into lp:openobject-server.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~credativ/openobject-server/trunk-imp-ipdb/+merge/69924
ipdb is ipython debugger, and improved python debugger with ipython-like tab completion.
This patch uses ipdb for debugging, if ipdb is installed.
--
https://code.launchpad.net/~credativ/openobject-server/trunk-imp-ipdb/+merge/69924
Your team Credativ is subscribed to branch lp:~credativ/openobject-server/trunk-imp-ipdb.
=== modified file 'openerp/netsvc.py'
--- openerp/netsvc.py 2011-07-29 11:20:19 +0000
+++ openerp/netsvc.py 2011-07-31 14:05:59 +0000
@@ -450,7 +450,10 @@
tb = getattr(e, 'traceback', sys.exc_info())
tb_s = "".join(traceback.format_exception(*tb))
if tools.config['debug_mode'] and isinstance(tb[2], types.TracebackType):
- import pdb
+ try:
+ import ipdb as pdb
+ except ImportError:
+ import pdb
pdb.post_mortem(tb[2])
raise OpenERPDispatcherException(e, tb_s)
Follow ups