I’m trying to run a commandline application from within VSCode.
Link to my repository.
This is the Chapter 13 code from “Programming Elixir”.
Things I’ve tried:
-
Added a
main(argv)
to the module. -
Added
escript: [main_module: Issues.CLI],
to the mix.exs file. -
Created a launch.json configuration:
{ "type": "mix_task", "name": "mix CLI", "request": "launch", "projectDir": "${workspaceRoot}", "task": "run", "taskArgs": [ "lib/issues/cli.ex" ] },
When I click ‘Run and Debug’ it seems to compile and start, but I never hit a breakpoint set in either the main
or run
function.
Any help is appreciated, thank you.