IEx.Helpers.whereami
You're seeing just the function
whereami
, go back to IEx.Helpers module for more information.
Prints the current location and stacktrace in a pry session.
It expects a radius
which chooses how many lines before and after
the current line we should print. By default the radius
is of two
lines:
Location: lib/iex/lib/iex/helpers.ex:79
77:
78: def recompile do
79: require IEx; IEx.pry()
80: if mix_started?() do
81: config = Mix.Project.config
(IEx.Helpers) lib/iex/lib/iex/helpers.ex:78: IEx.Helpers.recompile/0
This command only works inside a pry session started manually
via IEx.pry/0
or a breakpoint set via IEx.break!/4
. Calling
this function during a regular IEx
session will print an error.
Keep in mind the whereami/1
location may not exist when prying
precompiled source code, such as Elixir itself.