Normalizes the debug configuration by adding any derived properties, in the manner similar to what VSCode does to launch.json before submitting it to the adapter.
(self)
| 143 | self.setdefault(k, v) |
| 144 | |
| 145 | def normalize(self): |
| 146 | """Normalizes the debug configuration by adding any derived properties, in |
| 147 | the manner similar to what VSCode does to launch.json before submitting it |
| 148 | to the adapter. |
| 149 | """ |
| 150 | |
| 151 | if self["showReturnValue"]: |
| 152 | self.debug_options.add("ShowReturnValue") |
| 153 | |
| 154 | if self["redirectOutput"]: |
| 155 | self.debug_options.add("RedirectOutput") |
| 156 | |
| 157 | if not self["justMyCode"]: |
| 158 | self.debug_options.add("DebugStdLib") |
| 159 | |
| 160 | if self["django"]: |
| 161 | self.debug_options.add("Django") |
| 162 | |
| 163 | if self["jinja"]: |
| 164 | self.debug_options.add("Jinja") |
| 165 | |
| 166 | if self["flask"]: |
| 167 | self.debug_options.add("Flask") |
| 168 | |
| 169 | if self["pyramid"]: |
| 170 | self.debug_options.add("Pyramid") |
| 171 | |
| 172 | if self["subProcess"]: |
| 173 | self.debug_options.add("Multiprocess") |
| 174 | |
| 175 | if self["breakOnSystemExitZero"]: |
| 176 | self.debug_options.add("BreakOnSystemExitZero") |
| 177 | |
| 178 | if self["stopOnEntry"]: |
| 179 | self.debug_options.add("StopOnEntry") |
| 180 | |
| 181 | if self["waitOnNormalExit"]: |
| 182 | self.debug_options.add("WaitOnNormalExit") |
| 183 | |
| 184 | if self["waitOnAbnormalExit"]: |
| 185 | self.debug_options.add("WaitOnAbnormalExit") |
| 186 | |
| 187 | @property |
| 188 | def env(self): |