tsuyoshi84
Debugging with IntelliJ fails
I’ve been trying to debug just a simple Phoenix application with IntelliJ, but it doesn’t work.
Firstly, I created a “hello” Phoenix application with the following command.
mix phx.new hello --no-ecto --no-brunch
Then, I created a IntelliJ project by importing the source code and set up the Run/Debug configurations. However, when I try to run the project, it shows the following messages.
/Users/tsuyoshi.yamaguchi/erlang/20.3/bin/erl -noshell -s elixir start_cli -extra /Users/tsuyoshi.yamaguchi/.kiex/elixirs/elixir-1.6.5/bin/mix phx.server
{“init terminating in do_boot”,{undef,[{elixir,start_cli,,},{init,start_em,1,},{init,do_boot,3,}]}}
init terminating in do_boot ({undef,[{elixir,start_cli,,},{init,start_em,1,},{init,do_boot,3,}]})Crash dump is being written to: erl_crash.dump…done
I read this post and checked my configurations, but it seems fine.
Is there any idea what is the problem?
First Post!
sribe
Most Liked
KronicDeth
Check that your SDKs are setup. They should have been created during the import if missing:
- File > Project Structure
- Click Platform Settings > SDKs
- Verify you have an Elixir SDK
- Click the Elixir SDK
- Verify you have an Internal Erlang SDK on the Elixir SDK
- Verify the Elixir SDK has both Elixir and Erlang ebin directories like
.../elixir/ebinanderlang/lib/kernel-5.4.1/ebin - Click Project Settings > Project
- Verify Project SDK is the Elixir SDK?
9 .Click Project Settings > Modules - Click each Module and verify they also have the Elixir SDK set.
tsuyoshi84
KronicDeth
Sorry, I didn’t mean to imply check they exist on-disk. I mean that they should appear in your Classpath tab. Here’s what it looks like locally for me, using homebrew:
I’m going to guess that something is missing with the kiex and/or kerl support. You should be able to work-around this issue by manually adding the ebin directories using the + button the Classpath tab.
Last Post!
seanwash
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex











