Pry for Elixir
A simple wrapper around require IEx; IEx.pry that makes your life easier.
Installation
def deps do
[
{:pry, "~> 0.1.0", only: [:dev, :test]}
]
end
If you don't want to install a dependecy you can also just create a pry.ex file in your project:
defmodule Pry do
defmacro __using__(_opts \\ []) do
quote do
require IEx
IEx.pry()
end
end
endUsage
-
Start your project with
iex -Se.g.iex -S phx.server. -
Drop
use Pryinto your code. - Start debugging.