MDBBreak() | MDB Breakout: Local variables in mmf.utils.mdb._LOCALS[0]: |
mdb([trace]) | Use in place of import pdb;pdb.set_trace(). |
breakout() |
Inheritance diagram for mmf.utils.mdb:
Some debugging utilities
Bases: exceptions.Exception
MDB Breakout: Local variables in mmf.utils.mdb._LOCALS[0]:
import mmf.utils.mdb; locals().update(mmf.utils.mdb._LOCALS[0])
Use in place of import pdb;pdb.set_trace().
When using the debugger, errors can crash the debugging session making it hard to continue. This version stores the local variables in _LOCALS so that you work with these in the interpreter by doing something like
import mmf.utils.mdb; locals().update(mmf.utils.mdb._LOCALS[0])