Skip to content

Conversation

@mattisafur
Copy link

This will give an option output to the default device hen using inputs in launch.json.
For example:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            // ...
            "stdio": [
                null,
                "${input:stdoutFile}",
                null
            ],
            // ...
        }
    ],
    "inputs": [
        {
            "id": "stdoutFile",
            "type": "promptString",
            "description": "Path to STDOUT file",
        }
    ]
}

In this case, when stdoutFile is not set by the user stdio will be:

"stdio": [
    null,
    "",
    null
],

This will result in an error.

To counteract this, the change I made replaces empty strings with None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant