def custom_sitecustomize_breakpointhook(*args, **kwargs):
     import os
     hookname = os.getenv('PYTHONBREAKPOINT')
     if hookname is not None and len(hookname) > 0 and hasattr(sys, '__breakpointhook__'):
         sys.__breakpointhook__(*args, **kwargs)
     else:
         sys.path.append(os.path.dirname(os.path.dirname(__file__)))
         import pydevd
         kwargs.setdefault('stop_at_frame', sys._getframe().f_back)
         pydevd.settrace(*args, **kwargs)
Esempio n. 2
0
 def custom_sitecustomize_breakpointhook(*args, **kwargs):
     import os
     hookname = os.getenv('PYTHONBREAKPOINT')
     if hookname is not None and len(hookname) > 0 and hasattr(sys, '__breakpointhook__'):
         sys.__breakpointhook__(*args, **kwargs)
     else:
         sys.path.append(os.path.dirname(os.path.dirname(__file__)))
         import pydevd
         kwargs.setdefault('stop_at_frame', sys._getframe().f_back)
         pydevd.settrace(*args, **kwargs)
 def pydevd_breakpointhook():
     hookname = os.getenv('PYTHONBREAKPOINT')
     if hookname is not None and len(hookname) > 0 and hasattr(sys, '__breakpointhook__'):
         sys.__breakpointhook__(*args, **kwargs)
     else:
         import pydevd
         py_db = pydevd.get_global_debugger()
         if (py_db is not None) and (py_db.frame_eval_func is not None):
             from _pydevd_frame_eval.pydevd_frame_tracing import suspend_at_builtin_breakpoint
             suspend_at_builtin_breakpoint()
         else:
             pydevd.settrace(
                 suspend=True,
                 trace_only_current_thread=True,
                 patch_multiprocessing=False,
                 stop_at_frame=sys._getframe().f_back,
             )
 def pydevd_breakpointhook():
     hookname = os.getenv('PYTHONBREAKPOINT')
     if hookname is not None and len(hookname) > 0 and hasattr(
             sys, '__breakpointhook__'):
         sys.__breakpointhook__(*args, **kwargs)
     else:
         import pydevd
         py_db = pydevd.get_global_debugger()
         if py_db is not None:
             from _pydevd_frame_eval.pydevd_frame_tracing import suspend_at_builtin_breakpoint
             suspend_at_builtin_breakpoint()
         else:
             pydevd.settrace(
                 suspend=True,
                 trace_only_current_thread=True,
                 patch_multiprocessing=False,
                 stop_at_frame=sys._getframe().f_back.f_back,
             )
def break_in_method():
    sys.__breakpointhook__()  # Builtin on Py3, but we provide a backport on Py2.
def break_in_method():
    sys.__breakpointhook__(
    )  # Builtin on Py3, but we provide a backport on Py2.