Debugger Type incorrect

New to Elixir, new to vs code but not coding. I am trying to get the debugger in vs code working with Elixir. I have installed the extension ElixirLS version v0.17.1 and I am able to write code and execute from the integrated terminal provided by vs code. When I try to run and debug in the vs code window it complains about the “type: elixir”, command in the launch.json file stating that it is not a supported type? According to chatGPT what I have should “fly” but it doesn’t. Please see below the complete launch.json

“version”: “0.2.0”,
“configurations”: [
“name”: “Elixir Debug”,
“type”: “elixir”,
“request”: “launch”,
“program”: “${c:/Users/Gordon/servy}/lib/servy.ex”,
“cwd”: “${c:/Users/Gordon/servy}”,
“args”: ,
“runtimeArgs”: [
“console”: “integratedTerminal”,
“stopOnEntry”: false,
“internalConsoleOptions”: “neverOpen”

Any insight provided will be greatly appreciated.


Not quite the same as what you might be looking for, but the following works for me

"configurations": [
    "type": "mix_task",
    "name": "mix (Default task)",
    "request": "launch",
    "projectDir": "${workspaceRoot}"

Note this will launch your default application, for that you should create an application.ex that looks something like this (give the name you like and make the call to the function that starts your application:

defmodule MyApp.Application do
  def start(_type, _args) do
    {:ok, self()}

and register your Application in your mix.exs under (use the same name you used above):

def application do
    extra_applications: [:logger],
    mod: {MyApp.Application, []}