def METHOD_NAME(self):
    created_pydb_daemon = self.py_db.created_pydb_daemon_threads
    created_pydb_daemon[self] = 1
    try:
        try:
            if IS_JYTHON and not isinstance(threading.current_thread(), threading._MainThread):
                # we shouldn't update sys.modules for the main thread, cause it leads to the second importing 'threading'
                # module, and the new instance of main thread is created
                ss = JyCore.PySystemState()
                # Note: Py.setSystemState() affects only the current thread.
                JyCore.Py.setSystemState(ss)
            self._stop_trace()
            self._on_run()
        except:
            if sys is not None and pydev_log_exception is not None:
                pydev_log_exception()
    finally:
        del created_pydb_daemon[self]