mdmintz / pdbp

pdbp (Pdb+): A drop-in replacement for pdb and pdbpp. To replace "pdb", add "import pdbp" to an "__init__.py" file.
Other
75 stars 2 forks source link

Using a sub-level debugger results in max recursion depth error #66

Open jjmurre opened 4 months ago

jjmurre commented 4 months ago

When in a pdb debugger session, a new session (e.g. calling an arbitrary function foo) can be started with (Pdb+) debug foo().

However, this results in an error:

*** RecursionError: maximum recursion depth exceeded while calling a Python object
mdmintz commented 4 months ago

Did the same issue occur with the original Pdb?

jjmurre commented 4 months ago

No, in the original pdb (or pdbpp) this does not happen. You get this reponse:

ENTERING RECURSIVE DEBUGGER
[1] > <string>(1)<module>()
((Pdb++)) 

So, the cursor gets kind-of "doubled".