diff --git a/apps/elixir_ls_debugger/lib/debugger/server.ex b/apps/elixir_ls_debugger/lib/debugger/server.ex index 3b59efd5a..4775333f4 100644 --- a/apps/elixir_ls_debugger/lib/debugger/server.ex +++ b/apps/elixir_ls_debugger/lib/debugger/server.ex @@ -528,7 +528,16 @@ defmodule ElixirLS.Debugger.Server do |> Path.wildcard() |> Enum.map(&(Path.basename(&1, ".beam") |> String.to_atom())) |> Enum.filter(&interpretable?(&1, exclude_modules)) - |> Enum.map(&:int.ni(&1)) + |> Enum.map(fn mod -> + try do + :int.ni(mod) + catch + _, _ -> + IO.warn( + "Module #{inspect(mod)} cannot be interpreted. Consider adding it to `excludeModules`." + ) + end + end) end defp interpretable?(module, exclude_modules) do