diff options
author | Eike Ziller <[email protected]> | 2023-12-11 08:11:23 +0100 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2023-12-11 14:50:17 +0000 |
commit | d3c805630a434004d90dfcc7923f3c98a09b0166 (patch) | |
tree | 3d6b763ec47185eb93620076855dc182f97604b6 /src/plugins/debugger/debuggerplugin.cpp | |
parent | 1633d76b7674ff07e8938aa8f81ef2b07c92a202 (diff) |
CMake Debugging: Do not build/deploy
Fixes: QTCREATORBUG-30045
Change-Id: I478abaf29462d9413f3285527459a98b1cae899d
Reviewed-by: Artem Sokolovskii <[email protected]>
Reviewed-by: Cristian Adam <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index bb90a260cc9..6b74567e359 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1243,13 +1243,15 @@ void DebuggerPluginPrivate::createDapDebuggerPerspective(QWidget *globalLogWindo { QString name; char const *runMode; + bool forceSkipDeploy = false; }; const QList<DapPerspective> perspectiveList = { - DapPerspective{Tr::tr("CMake Preset"), ProjectExplorer::Constants::DAP_CMAKE_DEBUG_RUN_MODE}, + DapPerspective{Tr::tr("CMake Preset"), + ProjectExplorer::Constants::DAP_CMAKE_DEBUG_RUN_MODE, + /*forceSkipDeploy=*/true}, DapPerspective{Tr::tr("GDB Preset"), ProjectExplorer::Constants::DAP_GDB_DEBUG_RUN_MODE}, - DapPerspective{Tr::tr("Python Preset"), - ProjectExplorer::Constants::DAP_PY_DEBUG_RUN_MODE}, + DapPerspective{Tr::tr("Python Preset"), ProjectExplorer::Constants::DAP_PY_DEBUG_RUN_MODE}, }; for (const DapPerspective &dp : perspectiveList) @@ -1257,10 +1259,11 @@ void DebuggerPluginPrivate::createDapDebuggerPerspective(QWidget *globalLogWindo connect(&m_startDapAction, &QAction::triggered, this, [perspectiveList] { QComboBox *combo = qobject_cast<QComboBox *>(EngineManager::dapEngineChooser()); - if (perspectiveList.size() > combo->currentIndex()) - ProjectExplorerPlugin::runStartupProject(perspectiveList.at(combo->currentIndex()) - .runMode, - false); + if (perspectiveList.size() > combo->currentIndex()) { + const DapPerspective dapPerspective = perspectiveList.at(combo->currentIndex()); + ProjectExplorerPlugin::runStartupProject(dapPerspective.runMode, + dapPerspective.forceSkipDeploy); + } }); auto breakpointManagerView = createBreakpointManagerView("DAPDebugger.BreakWindow"); |