I have an elixir / phoenix application that I often connect to remotely.
I sometimes need to bugfix on there, and it helps me if I can insert some IO.inspects into modules to see what’s going on.
If I redefine that module inside the iex session, then it obviously picks up the new module and uses that code, overwriting the one in the codebase while I’m in the session.
My question is, once I leave that iex session, will the app use the new module I’ve defined or the one in the codebase?