Skip to content

Spaces in launch.json arguments #22

Description

@Leadwerks

I have a launch.json file like this:

    "version": "0.2.0",
    "configurations": [
        {
            "name": "launch-lua",
            "type": "lua",
            "request": "launch",
            "workingDirectory": "${workspaceRoot}",
            "sourceBasePath": "${workspaceRoot}",
            "executable": "${workspaceRoot}/Engine_d.exe",
            "arguments": "-script \\\"${file}\\\"",
            "listenPublicly": false,
            "listenPort": 56789,
            "encoding": "UTF-8",
            "env": {}
        }
...

If the file has a space in the path, the parameter gets cut off when passed to the program. Here is my C++ program's output when I just print out the argc / args array:

script
"c:\Users\User\Documents\Leadwerks\Projects\My

The full path "c:\Users\User\Documents\Leadwerks\Projects\My Game\Scripts\main.lua" gets cut off.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions