Summary
First of all, thank you all for this amazing project. I was wondering if you guys consider replacing pdb.post_mortem with a debugger package of already installed ones. This way, we can continue with the terminals we are used to.
In my mind, it is something like this:
middleware/_internal/init.py :
def get_post_mortem():
for package in ["pdbr", "pudb", "ipdb", "pdbpp"]:
try:
module = __import__(package, fromlist=["post_mortem"])
return module.post_mortem
except ImportError:
continue
import pdb
return pdb.post_mortem
middleware/_internal/exceptions/middleware.py :
if litestar_app.pdb_on_exception:
from .. import get_post_mortem
get_post_mortem()()
Basic Example

Drawbacks and Impact
No response
Unresolved questions
No response
Summary
First of all, thank you all for this amazing project. I was wondering if you guys consider replacing
pdb.post_mortemwith a debugger package of already installed ones. This way, we can continue with the terminals we are used to.In my mind, it is something like this:
middleware/_internal/init.py :
middleware/_internal/exceptions/middleware.py :
Basic Example
Drawbacks and Impact
No response
Unresolved questions
No response