top | item 32154218

(no title)

thepratt | 3 years ago

Are you aware of iex sessions (the repl)? If you start your elixir application via iex, you have a repl available alongside your running application. e.g. iex -S mix phx.server

discuss

order

xrd|3 years ago

Yes, definitely.

I've just been very confused once I am in there how to run a proper debugger. All those commands (:debugger.start()) "work" but they don't provide me with a step debugger that I'm used to (or at least don't make it obvious).

Do you use them in that way?

I just tried again to use :debugger.start() from within my IEx session, and couldn't figure out how to even load up the source code. Seems like it operates more at the erlang VM level and not at the Elixir/Phoenix level? And, pry/break seems nice, but does not let me step through, only set a breakpoint and then inspect the state then and there.

The REPL is amazing, I don't mean to downplay it!

But, I've yet to find a simple debugger for Phoenix applications, am I missing it?