From what I have read, there are two ways to debug code in Python:
With a traditional debugger such as pdb or ipdb. This supports c
pdb
ipdb
If you type exit() in embed() console the code continue and go to the next embed() line.