最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - VSCode launch.json input optional args - Stack Overflow

programmeradmin2浏览0评论

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
      },
发布评论

评论列表(0)

  1. 暂无评论