166 cf = cf.f_back |
166 cf = cf.f_back |
167 frmnr -= 1 |
167 frmnr -= 1 |
168 |
168 |
169 with contextlib.suppress(ImportError, AttributeError): |
169 with contextlib.suppress(ImportError, AttributeError): |
170 if "__pypy__" in sys.builtin_module_names: |
170 if "__pypy__" in sys.builtin_module_names: |
171 import __pypy__ |
171 import __pypy__ # __IGNORE_WARNING_I10__ |
172 |
172 |
173 __pypy__.locals_to_fast(cf) |
173 __pypy__.locals_to_fast(cf) |
174 return |
174 return |
175 |
175 |
176 ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(cf), ctypes.c_int(0)) |
176 ctypes.pythonapi.PyFrame_LocalsToFast(ctypes.py_object(cf), ctypes.c_int(0)) |
464 @param closeSession flag indicating to close the debugger session |
464 @param closeSession flag indicating to close the debugger session |
465 at exit |
465 at exit |
466 @type bool |
466 @type bool |
467 """ |
467 """ |
468 if globalsDict is None: |
468 if globalsDict is None: |
469 import __main__ |
469 import __main__ # __IGNORE_WARNING_I10__ |
470 |
470 |
471 globalsDict = __main__.__dict__ |
471 globalsDict = __main__.__dict__ |
472 |
472 |
473 if localsDict is None: |
473 if localsDict is None: |
474 localsDict = globalsDict |
474 localsDict = globalsDict |