How to diagnose IEx.pry breakpoint process shutting down: shell process exited with reason: shutdown


I’ve recently started work on a phoenix API, and am trying to debug using require IEx; IEx.pry.

Whenever I reach a breakpoint and hit ‘Y’ to start the interactive shell, after 1-2 seconds I receive:

Request to pry #PID<0.4584.0> at Web.Controller.create/3 (lib/bla..)
   20:   def create(conn, params, %{current_user: user}) do
   21:     require IEx; IEx.pry

Allow? [Yn] Y

Interactive Elixir (1.10.3) - press Ctrl+C to exit (type h() ENTER for help)
** (EXIT from #PID<0.4584.0>) shell process exited with reason: shutdown

I appreciate there’s no way for any of you to tell me why this is happening with the info I’ve given, but I’d like to know how I can try and investigate the issue? Is there any way of following a stack trace or getting some explanation?

Thanks in advance