5 ms·
Mostly the dev cycle in Elixir is different. There are no "binding.pry". We're back to putting logs in the code.
by john_the_writer 3y ago
Mostly the dev cycle in Elixir is different. There are no "binding.pry". We're back to putting logs in the code.
- senjin 3y ago`dbg` is relatively new but [IEx.pry](https://hexdocs.pm/iex/IEx.Pry.html https://hexdocs.pm/iex/IEx.Pry.html) has been around for a long itme
- bobwaycott 3y agoUse `dbg` for prying. You can also use `break!` in an `iex` session to manually set breakpoints without modifying your source. Additionally, you can use Erlang’s `:debugger`for visual debugging, and `:observer` for understanding the entire VM when prying is not enough.
- quaunaut 3y agoThis is not nor has not ever been true. Now, you've got `dbg()` and running whatever you're running via `iex -S <whateveryouweredoinghere>`. Prior to `dbg()` you had `IEx.pry()`.