tsuyoshi84

tsuyoshi84

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

sribe

IIRC, I never got debugging working in IntelliJ, but it did work in VS Code.

Most Liked

KronicDeth

KronicDeth

Check that your SDKs are setup. They should have been created during the import if missing:

  1. File > Project Structure
  2. Click Platform Settings > SDKs
  3. Verify you have an Elixir SDK
  4. Click the Elixir SDK
  5. Verify you have an Internal Erlang SDK on the Elixir SDK
  6. Verify the Elixir SDK has both Elixir and Erlang ebin directories like .../elixir/ebin and erlang/lib/kernel-5.4.1/ebin
  7. Click Project Settings > Project
  8. Verify Project SDK is the Elixir SDK?
    9 .Click Project Settings > Modules
  9. Click each Module and verify they also have the Elixir SDK set.
tsuyoshi84

tsuyoshi84 OP

Thank you! I made sure VS Code provides the debug capability and it works :slight_smile:

KronicDeth

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

seanwash

This just helped me out. Thanks for posting your solution!

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews