237 Public method to close the session with the debugger and optionally |
237 Public method to close the session with the debugger and optionally |
238 terminate. |
238 terminate. |
239 |
239 |
240 @param terminate flag indicating to terminate (boolean) |
240 @param terminate flag indicating to terminate (boolean) |
241 """ |
241 """ |
242 try: |
242 with contextlib.suppress(Exception): |
243 self.set_quit() |
243 self.set_quit() |
244 except Exception: # secok |
|
245 pass |
|
246 |
244 |
247 self.debugging = False |
245 self.debugging = False |
248 self.multiprocessSupport = False |
246 self.multiprocessSupport = False |
249 self.noDebugList = [] |
247 self.noDebugList = [] |
250 |
248 |
1144 |
1142 |
1145 @return client capabilities (integer) |
1143 @return client capabilities (integer) |
1146 """ |
1144 """ |
1147 try: |
1145 try: |
1148 import PyProfile # __IGNORE_WARNING__ |
1146 import PyProfile # __IGNORE_WARNING__ |
1149 try: |
1147 with contextlib.suppress(KeyError): |
1150 del sys.modules['PyProfile'] |
1148 del sys.modules['PyProfile'] |
1151 except KeyError: |
|
1152 pass |
|
1153 return self.clientCapabilities |
1149 return self.clientCapabilities |
1154 except ImportError: |
1150 except ImportError: |
1155 return ( |
1151 return ( |
1156 self.clientCapabilities & ~DebugClientCapabilities.HasProfiler) |
1152 self.clientCapabilities & ~DebugClientCapabilities.HasProfiler) |
1157 |
1153 |