# HG changeset patch # User Goffi # Date 1399410488 -7200 # Node ID fa3b65b689715ba8456c611fd1b99f717fee4315 # Parent 73f767a9ac2f4678c4acadd67746e1dae62ecb56 server side: ipdb is used instead of pdb in debug mode diff -r 73f767a9ac2f -r fa3b65b68971 twisted/plugins/libervia.py --- a/twisted/plugins/libervia.py Thu May 01 11:31:51 2014 +0200 +++ b/twisted/plugins/libervia.py Tue May 06 23:08:08 2014 +0200 @@ -17,6 +17,17 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +from twisted.internet import defer +if defer.Deferred.debug: + # if we are in debug mode, we want to use ipdb instead of pdb + try: + import ipdb + import pdb + pdb.set_trace = ipdb.set_trace + pdb.post_mortem = ipdb.post_mortem + except ImportError: + pass + from zope.interface import implements from twisted.python import usage