Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ElixirLS debugger unexpectedly stops when used with Phoenix and VSCode

Trying to debug my Phoenix project in VSCode using ElixirLS. The launch config is defined as

{
  "type": "mix_task",
  "name": "mix phx.server",
  "request": "launch",
  "task": "phx.server",
  "projectDir": "${workspaceRoot}"
}

The debugger starts and displays call stack for a fraction of a second but then immediately stops after "[info] Access TestAppWeb.Endpoint at http://localhost:4000" (see animated gif below). Has anyone gotten this to work?

Elixir 1.9.1

Debugger stops after launch

like image 918
rickythefox Avatar asked Aug 08 '19 21:08

rickythefox


1 Answers

Seems like this issue is fixed in the fork of ElixirLS at https://github.com/elixir-lsp/elixir-ls .

The original repo doesn't have any commits since 10 Aug 2019, but the fork is pretty active.

like image 136
rickythefox Avatar answered Sep 23 '22 09:09

rickythefox