日蚀(CDT)。 Build+Terminate Current debug + 运行 after load on debug button is possible?

Eclipse(CDT). Build+Terminate Current debug + Run after load on debug button is possible?

是否可以提供任何类型的 directives/commands 以便当我在 Eclipse IDE 中按下 "Debug" 按钮时,它会终止所有活动的调试会话、构建更改和程序后已加载 - 运行 应用程序不需要我做任何额外的 clicks/inputs? 谢谢!

正如@howlger 所说 "Window > Preferences: Run/Debug > Launching: Terminate and Relaunch while launching" 第 1 部分。

为了不必按 F8/resume,首先不要通过在启动配置中禁用它来在 main 处插入断点。从 运行 菜单 -> 调试配置... -> 选择你的启动 -> 调试选项卡,取消选中 Stop on startup at.

您可以更改默认设置,以便通过转到首选项 -> C/C++ -> 调试 -> GDB 取消选中新创建的配置在启动时停止。