Run break! in remote iex shell, show error.
$ bin/binary_file remote
iex(xxx@xxx)1> break! Enum.map/2
** (RuntimeError) could not set breakpoint, module Enum was not compiled with debug_info
(iex 1.12.0) lib/iex/pry.ex:220: IEx.Pry.break_call!/5
It’s just a example above, what I really want, is debugging other function.
Binary is released by mix release
$ MIX_ENV=prod mix release
So, how to add debug_info to the binary file?