summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2024-04-03 22:10:10 +0800
committerXusheng <xusheng@vector35.com>2024-04-03 22:10:10 +0800
commit6c514eaae5d2fed93738f91c85ca78343ff3c69b (patch)
treee534730bd74bec61bdff630c2eff27cabf345c5c /python
parent4985b77f2185ced7f29c91e1539cc5e1c1215e16 (diff)
Fix -DDEBUGGER=NO not working properly
Diffstat (limited to 'python')
-rw-r--r--python/scriptingprovider.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py
index 54785ac9..8eb6e7b8 100644
--- a/python/scriptingprovider.py
+++ b/python/scriptingprovider.py
@@ -1128,10 +1128,13 @@ from binaryninja import *
from debugger import DebuggerController
self.DebuggerController = DebuggerController
self.debugger_imported = True
- elif Settings().get_bool('corePlugins.debugger') and (os.environ.get('BN_DISABLE_CORE_DEBUGGER') is None):
- from .debugger import DebuggerController
- self.DebuggerController = DebuggerController
- self.debugger_imported = True
+ else:
+ settings = Settings()
+ if settings.contains('corePlugins.debugger') and settings.get_bool('corePlugins.debugger') and \
+ (os.environ.get('BN_DISABLE_CORE_DEBUGGER') is None):
+ from .debugger import DebuggerController
+ self.DebuggerController = DebuggerController
+ self.debugger_imported = True
@abc.abstractmethod
def perform_stop(self):