diff options
-rw-r--r-- | src/plugins/debugger/debuggermanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp index 2439aa8af41..89fac392dad 100644 --- a/src/plugins/debugger/debuggermanager.cpp +++ b/src/plugins/debugger/debuggermanager.cpp @@ -730,9 +730,6 @@ static IDebuggerEngine *determineDebuggerEngine(const QString &executable, QString *errorMessage, QString *settingsIdHint) { - if (IDebuggerEngine *tce = debuggerEngineForToolChain(static_cast<ProjectExplorer::ToolChain::ToolChainType>(toolChainType))) - return tce; - if (executable.endsWith(_(".js"))) { if (!scriptEngine) { *errorMessage = msgEngineNotAvailable("Script Engine"); @@ -741,6 +738,9 @@ static IDebuggerEngine *determineDebuggerEngine(const QString &executable, return scriptEngine; } + if (IDebuggerEngine *tce = debuggerEngineForToolChain(static_cast<ProjectExplorer::ToolChain::ToolChainType>(toolChainType))) + return tce; + #ifndef Q_OS_WIN Q_UNUSED(settingsIdHint) if (!gdbEngine) { |