admin管理员组文章数量:1403493
We need an option to pass arguments to the program from each debug session dynamically. I set up the launch.json to receive an input where they prompt for one parameter.
However, if I need the situation to not pass any parameter, keeping the input blank, they run the debugger launcher with "" as a parameter and this cannot happen, nothing in the parameter means no parameter.
Is there a way to achieve this without setting up a new launcher? or even a more dynamic way to set the parameters to be passed in a debug session?
...
"args": ["${input:FGLArgs}"],
...
"inputs": [
{
"id": "FGLArgs",
"type": "promptString",
"description": "Argumentos para passar na linha de comando"
// type specific configuration attributes
},
本文标签: visual studio codeVSCode launchjson input optional argsStack Overflow
版权声明:本文标题:visual studio code - VSCode launch.json input optional args - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744336577a2601224.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论