forked from pdbpp/pdbpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpdbrc.py
34 lines (23 loc) · 849 Bytes
/
pdbrc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""
This is an example configuration file for pdb++.
Put it into ~/.pdbrc.py to use it.
"""
import pdbpp
from pygments.styles import get_style_by_name
class Config(pdbpp.DefaultConfig):
# prompt = "(Pdb++) "
sticky_by_default = True # shows full code context at every step
use_pygments = True
pygments_formatter_class = "pygments.formatters.TerminalTrueColorFormatter"
# get available style names with the snippet below
pygments_formatter_kwargs = {"style": get_style_by_name("gruvbox-dark")}
editor = "vim"
def setup(self, pdb):
# make 'l' an alias to 'longlist'
Pdb = pdb.__class__
Pdb.do_l = Pdb.do_longlist
Pdb.do_st = Pdb.do_sticky
if __name__ == "__main__":
from pygments.styles import get_all_styles
all_styles = get_all_styles()
print(list(all_styles))