Pablo Galindo Salgado added the comment:
Hi Hernot,
I think I understand what you are indicating but I still find it a bit
confusing. Could you provide a reproducer and document a bit more the expected
and actual behaviour, maybe with some code snippets?
Thanks
--
nosy: +pablogsal
New submission from Hernot :
I like the PDB debugger it is a quite powerfull tool, despite a few donws. One
is that cleanup code eg registered by debugged script, module is not executed
on restart. a crude hack is to check whether pdb is invoked via python -mpdb
using inspect and decorate