Next topic

mmf.utils.mmf_plot

This Page

mmf.utils.mdb

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:

Inheritance diagram of mmf.utils.mdb

Some debugging utilities

class mmf.utils.mdb.MDBBreak[source]

Bases: exceptions.Exception

MDB Breakout: Local variables in mmf.utils.mdb._LOCALS[0]:

import mmf.utils.mdb; locals().update(mmf.utils.mdb._LOCALS[0])

__init__()[source]
mmf.utils.mdb.mdb(trace=True)[source]

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])

mmf.utils.mdb.breakout()[source]