[Pythonmac-SIG] pdb (bdb) exception under emacs
Bob Ippolito
bob at redivi.com
Fri Mar 12 10:51:36 EST 2004
On Mar 12, 2004, at 4:41 PM, chris at fonnesbeck.org wrote:
> Does anyone develop python using emacs? When I debug a file that calls
> pdb.set_trace(), I get the following:
>
>> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
>> python2.3/pdb.py(992)set_trace()->None
> -> Pdb().set_trace()
> (Pdb)
> Traceback (most recent call last):
> File "<stdin>", line 148, in ?
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/pdb.py",
> line 992, in set_trace
> Pdb().set_trace()
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/bdb.py",
> line 52, in trace_dispatch
> return self.dispatch_return(frame, arg)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/bdb.py",
> line 80, in dispatch_return
> if self.quitting: raise BdbQuit
> bdb.BdbQuit
>
> Anyone else seen this? I do not get this behaviour with other
> platforms,
> so I am thinking it may be a pythonmac issue. Any help is most
> appreciated.
I don't know about emacs, but that is expected behavior if you end a
set_trace debugging session with ctrl-d, 'EOF', 'quit', etc. If you
don't want an exception to be raised, I believe you have to 'continue'
instead.
-bob
More information about the Pythonmac-SIG
mailing list