src/eric7/DebugClients/Python/DebugBase.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
181 with contextlib.suppress(IndexError): 181 with contextlib.suppress(IndexError):
182 cf = self.frameList[frmnr] 182 cf = self.frameList[frmnr]
183 183
184 with contextlib.suppress(ImportError, AttributeError): 184 with contextlib.suppress(ImportError, AttributeError):
185 if "__pypy__" in sys.builtin_module_names: 185 if "__pypy__" in sys.builtin_module_names:
186 import __pypy__ # __IGNORE_WARNING_I10__ 186 import __pypy__ # __IGNORE_WARNING_I-10__
187 187
188 __pypy__.locals_to_fast(cf) 188 __pypy__.locals_to_fast(cf)
189 return 189 return
190 190
191 ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(cf), ctypes.c_int(0)) 191 ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(cf), ctypes.c_int(0))
399 399
400 if event in ("c_call", "c_exception", "c_return"): 400 if event in ("c_call", "c_exception", "c_return"):
401 # ignore C events 401 # ignore C events
402 return None 402 return None
403 403
404 print( # __IGNORE_WARNING_M801__ 404 print( # __IGNORE_WARNING_M-801__
405 "DebugBase.trace_dispatch: unknown debugging event: ", 405 "DebugBase.trace_dispatch: unknown debugging event: ",
406 repr(event), 406 repr(event),
407 ) 407 )
408 408
409 return self.trace_dispatch 409 return self.trace_dispatch
486 @param closeSession flag indicating to close the debugger session 486 @param closeSession flag indicating to close the debugger session
487 at exit 487 at exit
488 @type bool 488 @type bool
489 """ 489 """
490 if globalsDict is None: 490 if globalsDict is None:
491 import __main__ # __IGNORE_WARNING_I10__ 491 import __main__ # __IGNORE_WARNING_I-10__
492 492
493 globalsDict = __main__.__dict__ 493 globalsDict = __main__.__dict__
494 494
495 if localsDict is None: 495 if localsDict is None:
496 localsDict = globalsDict 496 localsDict = globalsDict

eric ide

mercurial