aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2023-12-12 10:17:39 +0100
committerEike Ziller <[email protected]>2023-12-12 10:17:39 +0100
commit10e5a27c272725138a4e6b233d0a1eadc970a378 (patch)
tree4bb10dcd9d2a1d42f617aafe2395214ab99190f2 /src/plugins/debugger/debuggerplugin.cpp
parent27ef041d28a9239215a683cb67b422e17c7e7ab5 (diff)
parentc4464eb072dfff073809fc3207a29c55773dcb9b (diff)
Merge remote-tracking branch 'origin/12.0'
Conflicts: src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp Change-Id: If96d0f0a3d48c2581e765e4afb8b23924c48bdd6
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 1a5b9ad21e4..7cd99b44d70 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1232,13 +1232,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)
@@ -1246,10 +1248,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");