You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

CLion快速带参数运行:无需保存配置的快捷参数输入方式问询

Quick Way to Input Temporary Parameters for Run/Debug in CLion

Absolutely, there's a clean way to launch your program with one-off parameters (without saving a new run configuration) while still using CLion's GUI debugger. Here's what you can do:

For Running with Temporary Parameters

  • Keyboard Shortcut:
    • Windows/Linux: Press Ctrl+Alt+R
    • Mac: Press Option+Cmd+R
  • This will pop up a dedicated "Run" dialog where you can type your desired program arguments in the Program arguments field. Click "Run" and your program will execute with those temporary parameters—no changes are saved to your existing configurations.

For Debugging with Temporary Parameters

  • Keyboard Shortcut:
    • Windows/Linux: Press Ctrl+Alt+D
    • Mac: Press Option+Cmd+D
  • Similar to the run dialog, this opens a "Debug" dialog. Enter your parameters, hit "Debug", and CLion will start a debugging session using those one-off arguments, keeping your saved configurations untouched.

Alternative GUI Method (No Shortcuts Needed)

If you prefer clicking over keyboard shortcuts:

  • Hold down Alt (Windows/Linux) or Option (Mac), then click the Run or Debug button in the toolbar. This will directly bring up the parameter input dialog for the corresponding action.

This approach lets you quickly test different parameters on the fly while leveraging CLion's full debugging tools, without cluttering your list of saved run configurations.

内容的提问来源于stack exchange,提问作者PKua

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 09:27:17