vscode调试时几个常用参数的含义和设置总结

request#

指示配置节是要启动程序还是要连接到已在运行的实例。

Indicates whether the configuration section is intended to launch the program or attach to an already running instance.

args#

启动程序时传递给程序的命令行参数的JSON数组。

JSON array of command-line arguments to pass to the program when it is launched. Example ["arg1", "arg2"]. If you are escaping characters, you will need to double escape them. For example, ["{\\\"arg1\\\": true}"] will send {"arg1": true} to your application.

 stopAtEntry#

如果设置为true,则调试器应在目标的入口点停止(附加时忽略)。默认值为false。

If set to true, the debugger should stop at the entry-point of the target (ignored on attach). Default value is false.

cwd#

设置由调试器启动的应用程序的工作目录。

Sets the working directory of the application launched by the debugger.

environment#

要添加到程序环境中的环境变量。

Environment variables to add to the environment for the program. Example: [ { "name": "config", "value": "Debug" } ], not [ { "config": "Debug" } ].

externalConsole#

仅在启动调试对象时使用。对于“附加”,此参数不会更改调试对象的行为。

Used only when launching the debuggee. For attach, this parameter does not change the debuggee's behavior.

 

MIMode#

指示VS代码将连接到的调试器。必须设置为gdb或lldb。这是基于每个操作系统预先配置的,可以根据需要进行更改。

Indicates the debugger that VS Code will connect to. Must be set to gdb or lldb. This is pre-configured on a per-operating system basis and can be changed as needed.

setupCommands#

设置GDB或LLDB所需执行的命令的JSON数组。

JSON array of commands to execute in order to set up the GDB or LLDB. Example: "setupCommands": [ { "text": "target-run", "description": "run target", "ignoreFailures": false }].

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

子燕若水

吹个大气球

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值