Since its indispensable tool for me. I wanted to put my learning with the entire humanity .
It could get really annoying if you can’t run a multiple line code because usually it is multiple lines. To achieve that just run the below piece of can in pdb debugger in terminal.
(Pdb) !import code; code.interactive(local=vars())
That’s it and you land in a multiline python console inside of debugger.