Using command line arguments via launch.json in VS Code

Hello,

I have just started using Julia and would like to find an easy way to test a function that relies on command line arguments in VS Code. According to the documentation, I should be able to use the launch.json file to achieve that.

https://www.julia-vscode.org/docs/dev/userguide/runningcode/

However using the below launch configuration, I can’t seem to get my program to recognise the arguments. I know that the configuration is actually applied (changing the program name to something random gives an error message), but after multiple tried I haven’t been able to get the arguments to register. I have also tested passing the arguments via command line and they are correctly recognised, so it’s only the launch.json configuration that is giving me trouble.

I would be grateful for any help.

{

    // Use IntelliSense to learn about possible attributes.

    // Hover to view descriptions of existing attributes.

    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

    "version": "0.2.0",

    "configurations": [

        {

            "type": "julia",

            "request": "launch",

            "name": "Run wrapper",

            "program": "FilterVariantFrequencyWrapper.jl",

            "stopOnEntry": false,

            "cwd": "${workspaceFolder}",

            "juliaEnv": "${command:activeJuliaEnvironment}",

            "args": ["--pmin 0.2", "--pmax 0.7", "mutation_frequency_test.csv"],

        }

    ]

}