[erlang-questions] How to best debug init.erl?
Björn-Egil Dahlberg
wallentin.dahlberg@REDACTED
Thu Apr 19 21:11:38 CEST 2012
Do it like this instead:
Hop down to erts/preloaded,
1. PATH=$ERL_TOP/bin:$PATH gmake
2. copy file from src to ebin
3. Hop to erts, remake beam, i.e make (check for preload.o to link)
// Björn-Egil
Den 19 april 2012 21:06 skrev Peer Stritzinger <peerst@REDACTED>:
> On Thu, Apr 19, 2012 at 8:37 PM, Peer Stritzinger <peerst@REDACTED>
> wrote:
> > What do I have to do to rebuild with changes in init.erl ...
> > especially for cross building.
>
> Small update to this part: I found
>
> $ ./otp_build update_preloaded
>
> Which rebuilds the preloaded files but then I get in trouble when I
> want to rebuild with
>
> $ ./otp_build boot -a
>
> I get errors like:
>
> ...
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * *
> * ERROR: Trying to cross compile an Erlang/OTP-R15B system with a
> different
> * Erlang/{"load_mod",error_handler,"error_handler.beam"}
> ...
>
> Somehow update_preloaded seems to use the wrong Erlang version (my
> installed one?)
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120419/7e4ba598/attachment.htm>
More information about the erlang-questions
mailing list