Skip to Content

lyte.dev

about blog contact

iex and dbg/1 without pry prompts

Posted on Mar 26 2024

Table of Contents

I love iex -S mix ... but I usually don’t like when dbg asks me to pry. Just show me my data! Well, today I learned about iex --no-pry:

$ iex --help
Usage: iex [options] [.exs file] [data]
  ...
  --no-pry            Doesn't start pry sessions when dbg/2 is called.

Now I can iex --no-pry -S mix ... and just see output instead of dealing with the prompts for prying! Not sure if anybody else felt this pain, but there ya go.