VS Code extension for Erlang Debugger
Experiment with a daptoy launch config (in .vscode/launch.json
) of
{
"version": "0.2.0",
"configurations": [
{
"type": "erlang",
"request": "launch",
"name": "Run baby run",
"cwd": "${workspaceRoot}",
"stopOnEntry": true,
"module": "daptoy_fact",
"function": "fact",
"args": "[5]"
}
]
}
git clone https://github.com/alanz/erlang_ls.git
cd erlang_ls
git checkout dap-vscode
rebar3 as dap escriptize
Make sure ./_build/dap/bin/els_dap
is in your path.
The target project for the launch config is daptoy, set a breakpoint around line 10 of `src/daptoy_fact.erl.