Skip to content

Clarification setting up a config file #158

@jason-a69

Description

@jason-a69

Hi there,
I am trying to pass some parameters to a compiled go program.
I have the following debug.json file

{
  "configurations": [
   {"name": "Debug cmd",
    "mode": "debug",
    "cwd": "${workspaceRoot}/cmd",
    "args": ["-<parameter 1> <parameter 1 value> -<parameter 2> <parameter 2 value>"]
    }
                    ]
}

(I have swapped out the real parameters above)

My Configuration file in the Go Debug settings is set to the full path to debug.json for example
/home/jason/dir/debug.json

I am having some issues with the program picking up the parameter values, does the about set up look ok?

Many thanks

Jason

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions