PDB: exception when in console - full stack trace

Posted by EoghanM on Stack Overflow See other posts from Stack Overflow or by EoghanM
Published on 2010-05-02T18:01:18Z Indexed on 2010/05/02 18:08 UTC
Read the original article Hit count: 348

Filed under:
|

When at the pdb console, entering a statement which causes an exception results in just a single line stack trace, e.g.

(Pdb) someFunc()
*** TypeError: __init__() takes exactly 2 arguments (1 given)

However I'd like to figure out where exactly in someFunc the error originates. i.e. in this case, which class __init__ is attached to.

Is there a way to get a full stack trace in Pdb?

© Stack Overflow or respective owner

Related posts about python

Related posts about pdb