`import code; code.interact(local=locals())`
Drops you into the interpreter and is sufficient for a lot of debugging problems.