site.lyte.dev/content/tips/iex-dbg-pry.md

18 lines
525 B
Markdown
Raw Permalink Normal View History

2023-06-26 14:35:12 -05:00
---
title: "iex and dbg/1 without pry prompts"
date: "2023-06-22"
---
2023-06-26 13:20:16 -05:00
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`:
2023-06-26 14:35:12 -05:00
```console
2023-06-26 13:20:16 -05:00
$ iex --help
Usage: iex [options] [.exs file] [data]
2023-06-26 14:35:12 -05:00
...
2023-06-26 13:20:16 -05:00
--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 `pry`ing! Not sure if anybody else felt this pain, but there
ya go.