在Visual Studio Code中launch.json
,启动我正在编写的应用程序的文件中,如何添加命令行参数?
如文档中所述,您需要使用args
属性。例如
{
"type": "node",
"request": "launch",
"name": "Debug App",
"program": "${workspaceFolder}/main.js",
"args": ["arg1", "arg2", "arg3"]
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句