In VS Code, I see how to setup a run configuration in the launch.json for debugging. Something like
{
"type": "julia",
"request": "launch",
"name": "Run active Julia file",
"program": "${file}",
"stopOnEntry": false,
"cwd": "${workspaceFolder}",
"juliaEnv": "${command:activeJuliaEnvironment}"
}
Is it possible to set up a launch configuration to just run a julia script (not in debugging mode)?
2 Likes
Ctrl+F5 should run that launch config without the debugger.
1 Like
Thank you @davidanthoff, worked for me!
That works for running, currently active script. however, can we create a run config that will run a specific script (non-active) like
{
"type": "julia",
"request": "launch",
"name": "Launch example 2",
"program": "${workspaceFolder}/examples/example2.jl",
"stopOnEntry": false
},
in non-debug mode? Can we click on the run config dropdown, select the run config and hit go without having to navigate to that file in the browser first (in non-debug mode)?
edit: nevermind! I see that Ctrl+F5 runs the selected run config in normal mode, which includes the “specific-file” version above. Cool!