mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
debugger: load 'ipdb' if present
* debugger: load 'ipdb' if present Transparently chooses between the IPython-enhanced 'ipdb' or the standard 'pdb'. * datasette install ipdb --------- Co-authored-by: Simon Willison <swillison@gmail.com>
This commit is contained in:
parent
4efcc29d02
commit
1f3fb5f96b
2 changed files with 11 additions and 3 deletions
|
|
@ -5,9 +5,13 @@ from .utils.asgi import (
|
|||
)
|
||||
from .views.base import DatasetteError
|
||||
from markupsafe import Markup
|
||||
import pdb
|
||||
import traceback
|
||||
|
||||
try:
|
||||
import ipdb as pdb
|
||||
except ImportError:
|
||||
import pdb
|
||||
|
||||
try:
|
||||
import rich
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue