Skip to content

Clarification setting up a config file #158

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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions