Enter debugger

import code
...
code.interact(local=dict(globals(), **locals()))