You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using https://pypi.org/project/pdbpp/ as my debugger and was wondering if there's a way to hook better_exceptions into the .pdbrc.py file when a pdb statement or error occurs.
Any ideas on this..?
This is my current pdbrc configuration:
"""This is an example configuration file for pdb++."""importpdbclassConfig(pdb.DefaultConfig):
use_pygments=Truedisable_pytest_capturing=Truestdin_paste="epaste"filename_color=pdb.Color.lightgrayuse_terminal256formatter=Falsedef__init__(self):
try:
frompygments.formattersimportterminalexceptImportError:
passelse:
self.colorscheme=terminal.TERMINAL_COLORS.copy()
self.colorscheme.update(
{
terminal.Keyword: ("darkred", "red"),
terminal.Number: ("darkyellow", "yellow"),
terminal.String: ("brown", "green"),
terminal.Name.Function: ("darkgreen", "blue"),
terminal.Name.Namespace: ("teal", "turquoise"),
}
)
defsetup(self, pdb):
Pdb=pdb.__class__Pdb.do_l=Pdb.do_longlistPdb.do_st=Pdb.do_sticky
The text was updated successfully, but these errors were encountered:
I'm currently using https://pypi.org/project/pdbpp/ as my debugger and was wondering if there's a way to hook better_exceptions into the
.pdbrc.py
file when a pdb statement or error occurs.Any ideas on this..?
This is my current pdbrc configuration:
The text was updated successfully, but these errors were encountered: