Cannot debug an Phoenix project in VSCode with the extension ElixirLS

I’m trying to use the ElixirLS extension in VSCode to debug a Phoenix project.

The problem is that if I make any changes to the project, it will recompile and debugging stops working, throwing an error message. If I run the mix phx.server command in the terminal, the recompilation works.

Is there no way to actively debug how VSCode works in a Phoenix project?

Disable phoenix live reload. It has a known incompatibility with debuger Live reload breaks debugging session in elixirLS debugger · Issue #133 · phoenixframework/phoenix_live_reload · GitHub