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