Pdb and Python's core module loading when set_trace() is called: possible? -
recently find myself using pdb
lot more usual. have beautiful shortcut adds import pdb; pdb.set_trace()
need in code. now, everytime i'm in pdb, want emulated interactive console found in python's code module, avoid using oneliners while debugging.
this requires typing !import code; code.interact(local=vars())
every time , it's utterly annoying, since have keep ready copy-and-paste or type manually.
is there way have loaded every time set_trace()
called? all
why not import code; code.interact(local=vars())
instead of import pdb; pdb.set_trace()
?
Comments
Post a Comment