Python Debugging Trick

PDB


Hit tie line of code in pdb session to get the
InteractiveConsole

(pdb) !import code; code.interact(local=vars())


When you're done, use Ctrl-D to return to the regular pdb prompt.


Just don't hit Ctrl-C, that will terminate the entire pdb session.

0 comments:

Copyright © 2013 SoftKul