diff --git a/src/deep/processor/trigger_handler.py b/src/deep/processor/trigger_handler.py index b35028a..6cf1c1b 100644 --- a/src/deep/processor/trigger_handler.py +++ b/src/deep/processor/trigger_handler.py @@ -58,6 +58,10 @@ def __init__(self, config, push_service): self._config.add_listener(TracepointHandlerUpdateListener(self)) def start(self): + # if we call settrace we cannot use debugger, + # so we allow the settrace to be disabled, so we can at least debug around it + if self._config.NO_TRACE: + return sys.settrace(self.trace_call) threading.settrace(self.trace_call)