Open psteininger opened 3 months ago
this is quite odd, because when I run iex
, the module :int
and all the functions are there. Also running the line below returns true
% iex
Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Interactive Elixir (1.17.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :int.interpretable(:asn1_db)
true
iex(2)>
Small Update:
I managed to get further by adding :*
to the list of interpreted modules:
However, I got a different error:
23:33:49.981 [error] GenServer IntelliJElixir.Debugger.Server terminating
** (UndefinedFunctionError) function :int.auto_attach/2 is undefined (module :int is not available)
:int.auto_attach([:break], {IntelliJElixir.Debugger.Server, :breakpoint_reached, []})
/private/var/folders/br/smkky7lx2zlf42fz6fh6yv280000gn/T/intellij_elixir9/debugger/lib/intellij_elixir/debugger/server.ex:94: IntelliJElixir.Debugger.Server.handle_call/3
(stdlib 6.0.1) gen_server.erl:2209: :gen_server.try_handle_call/4
(stdlib 6.0.1) gen_server.erl:2238: :gen_server.handle_msg/6
(stdlib 6.0.1) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
Last message (from #PID<12153.4.0>): :attach
State: %IntelliJElixir.Debugger.Server{attached: nil, evaluate_meta_pid_to_froms: %{}}
Client #PID<12153.4.0> is remote on node :"debuggerff782bc2-b96a-469a-80a5-c5f434e80272@127.0.0.1"
Would anyone suggest other things to try or a workaround?
I'll write a guide about this, it is a pain to get to work as you need to juggle modules.
I am having the exact same issue. The setup guide would be much appreciated
Did anyone find a workaround yet? Been struggling with this issue for a few days. I'm also fairly new to elixir.
Having the same issue, I posted it here https://elixirforum.com/t/error-while-debugging-phoenix-app-ubuntu-24-intellij-ultimate/66239
Were you able to work on that guide @joshuataylor ?
I tried running a
mix phx.server
configuration in debug mode . I have OTP 27.0.1 and elixir 1.17.2-otp-27 installed via mise/asdf. The erlang and Elixir SDKs are the only ones in the list and the elixir 1.17.2-otp-27 is the selected SDK.To Reproduce Steps to reproduce the behavior:
phx.server
as mix argumentsExpected behavior Debugger starts and attaches to the process
Screenshots
Logs
Desktop:
Erlang:
Elixir:
Plugin: