diff --git a/plugins/org.python.pydev.core/pysrc/_pydevd_sys_monitoring/pydevd_sys_monitoring_manager.py b/plugins/org.python.pydev.core/pysrc/_pydevd_sys_monitoring/pydevd_sys_monitoring_manager.py deleted file mode 100644 index 2b0819428c..0000000000 --- a/plugins/org.python.pydev.core/pysrc/_pydevd_sys_monitoring/pydevd_sys_monitoring_manager.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys -DEBUGGER_ID = sys.monitoring.DEBUGGER_ID -monitor = sys.monitoring - - -class SysMonitoringManager: - - DISABLE = monitor.DISABLE - - def register_debugger(self): - monitor.use_tool_id(DEBUGGER_ID, 'pydevd') - - def unregister_debugger(self): - if monitor.get_tool(DEBUGGER_ID) == 'pydevd': - monitor.free_tool_id(DEBUGGER_ID) - - def trace_start_events(self, callback): - monitor.set_events(DEBUGGER_ID, monitor.events.PY_START | monitor.events.PY_RESUME) - - # Only one callback is registered at a time and to unregister 'None' can be passed. - monitor.register_callback(DEBUGGER_ID, monitor.events.PY_START, callback) - monitor.register_callback(DEBUGGER_ID, monitor.events.PY_RESUME, callback) - - def trace_line_events(self, code): - monitor.set_local_events(DEBUGGER_ID, code, monitor.events.LINE) diff --git a/plugins/org.python.pydev.core/pysrc/pydevd.py b/plugins/org.python.pydev.core/pysrc/pydevd.py index cd78b5c8c1..81805a9399 100644 --- a/plugins/org.python.pydev.core/pysrc/pydevd.py +++ b/plugins/org.python.pydev.core/pysrc/pydevd.py @@ -1942,7 +1942,7 @@ def set_suspend(self, thread, stop_reason, suspend_other_threads=False, is_pause # Suspend all except the current one (which we're currently suspending already). suspend_all_threads(self, except_thread=thread) - if is_pause and not suspend_other_threads: + if is_pause and not suspend_other_threads and USE_SYS_MONITORING: # When suspending other threads this is already called. pydevd_sys_monitoring.restart_events()