|
38 | 38 | # processor (step_ignore) are shared between the two. They also don't |
39 | 39 | # generally appear as settings. |
40 | 40 |
|
| 41 | +# fmt: off |
41 | 42 | DEBUGGER_SETTINGS = { |
42 | 43 | # Emacs and old-style gdb annotate level. Used to annotate output |
43 | 44 | # to make parsing inside Emacs easier and to allow Emacs to get |
44 | 45 | # updated information (stack, local variables) without having to |
45 | 46 | # poll for it. |
46 | 47 | "annotate": 0, |
| 48 | + |
47 | 49 | # Format style to use in showing disassembly |
48 | 50 | "asmfmt": "extended", |
| 51 | + |
49 | 52 | # Eval as Python the unrecognized debugger commands? |
50 | 53 | "autoeval": True, |
| 54 | + |
51 | 55 | # Run 'list' command every time we enter the debugger? |
52 | 56 | "autolist": False, |
| 57 | + |
53 | 58 | # Enter IPython every time we enter the debugger? |
54 | 59 | # Note: only relevant if we have ipython installed. This takes |
55 | 60 | # precedence over autopython. |
56 | 61 | "autoipython": False, |
| 62 | + |
57 | 63 | # Run 'info pc' command every time we enter the debugger? |
58 | 64 | "autopc": False, |
| 65 | + |
59 | 66 | # Enter Python every time we enter the debugger? |
60 | 67 | "autopython": False, |
| 68 | + |
61 | 69 | # Show basename only on filename output? |
62 | 70 | # This option is useful in integration testing and |
63 | 71 | # possibly to prepare example output for publication |
64 | 72 | "basename": False, |
| 73 | + |
65 | 74 | # Set echoing lines read from debugger? |
66 | 75 | "cmdtrace": False, |
| 76 | + |
67 | 77 | # confirm potentially dangerous operations? |
68 | 78 | "confirm": True, |
| 79 | + |
69 | 80 | # Debug macros? |
70 | 81 | "debugmacro": False, |
| 82 | + |
71 | 83 | # Debug the debugger? |
72 | 84 | "dbg_trepan": False, |
| 85 | + |
73 | 86 | # When True, consecutive stops must be on different |
74 | 87 | # file/line positions. |
75 | 88 | "different": True, |
| 89 | + |
76 | 90 | # events is a set of events to process line-, call-, or return-like |
77 | 91 | # tracing. See tracer.ALL_EVENT_NAMES and ALL_EVENTS |
78 | 92 | # Note this is independent of printset which just prints the event. |
79 | 93 | # This set controls entering the debugger command processor. |
80 | 94 | "events": tracer.ALL_EVENTS, |
| 95 | + |
81 | 96 | # Use terminal highlight? Acceptable values are |
82 | 97 | # 'plain' : no highlighting |
83 | 98 | # 'dark' : terminal highlighting for a dark background |
84 | 99 | # 'light' : terminal highlighting for a light background |
85 | 100 | "highlight": "dark" if is_dark_bg else "light", |
| 101 | + |
86 | 102 | # Where do we save the history? |
87 | 103 | "histfile": None, |
| 104 | + |
88 | 105 | # Save debugger history? |
89 | 106 | "hist_save": True, |
| 107 | + |
90 | 108 | # Show function calls/returns? |
91 | 109 | "fntrace": False, |
| 110 | + |
92 | 111 | # Number of lines to show by default in a 'list' command. |
93 | 112 | "listsize": 10, |
| 113 | + |
94 | 114 | # max length to show of parameter string |
95 | 115 | "maxargstrsize": 100, |
| 116 | + |
96 | 117 | # max length to in other strings |
97 | 118 | "maxstring": 150, |
| 119 | + |
98 | 120 | # printset is a set of events to print line-, call-, or return-like |
99 | 121 | # tracing. See tracer.ALL_EVENT_NAMES and ALL_EVENTS. This only |
100 | 122 | # has an effect if trace is set True. |
101 | 123 | "printset": tracer.ALL_EVENTS, |
| 124 | + |
102 | 125 | # If this is set True, debugger startup file, e.g. ".trepanrc" will |
103 | 126 | # not be read/run. |
| 127 | + |
104 | 128 | "nostartup": False, |
105 | 129 | # Reread source file if we determine it has changed? |
| 130 | + |
106 | 131 | "reload": False, |
107 | 132 | # Skip instructions that make classes, functions, and closures? |
108 | 133 | # (In the Python they are "class" and "def" statements) |
109 | 134 | "skip": True, |
| 135 | + |
110 | 136 | "step_ignore": 0, |
111 | | - # Pygments style |
| 137 | + |
| 138 | + # Pygments style. Style is ignored if "highlight" setting |
| 139 | + # is "plain" |
112 | 140 | "style": "zenburn" if is_dark_bg else "tango", |
| 141 | + |
113 | 142 | # Location to put temporary decompiled python files. |
114 | 143 | # If value is None, use Python's defaults |
115 | 144 | "tempdir": None, |
| 145 | + |
116 | 146 | # print trace output? |
117 | 147 | "trace": False, |
| 148 | + |
118 | 149 | # The target maximum print length. Used for example in listing |
119 | 150 | # arrays which are columnized. |
120 | 151 | "width": width, |
|
127 | 158 |
|
128 | 159 |
|
129 | 160 | SERVER_SOCKET_OPTS = { |
130 | | - "HOST": None, # Symbolic name meaning all available interfaces |
131 | | - "PORT": 1027, # Arbitrary non-privileged port |
| 161 | + "HOST": None, # Symbolic name meaning all available interfaces |
| 162 | + "PORT": 1027, # Arbitrary non-privileged port |
132 | 163 | "reuse": "posix" == os.name, # Allow port to be reused on close? |
133 | | - "skew": +0, # additional increment on socket tries |
| 164 | + "skew": +0, # additional increment on socket tries |
134 | 165 | "search_limit": 100, # max number of ports to try |
135 | 166 | } |
| 167 | +# fmt: on |
136 | 168 |
|
137 | 169 | # Default settings on the Debugger#start() method call |
138 | 170 | START_OPTS = { |
|
0 commit comments