def _debugger_break(self): t = pydevd.threadingCurrentThread() debugger = GetGlobalDebugger() debugger.setSuspend(t, CMD_SET_BREAK)