[erlang-questions] how to debug the erlang boot?

Benoit Chesneau bchesneau@REDACTED
Mon Apr 8 13:32:12 CEST 2013


On Mon, Apr 8, 2013 at 12:40 PM, Håkan Mattsson <hm@REDACTED> wrote:
> Try -init_debug (and possible -loader_debug) to get more more info about
> what is going on during boot.


Thanks, trying it now.

- beno[it
>
> /Håkan
>
> On Mon, Apr 8, 2013 at 12:00 PM, Benoit Chesneau <bchesneau@REDACTED>
> wrote:
>>
>> Hi,
>>
>> I have an application that load Erlang application in a thread (on
>> android) using a patched version of Erlang [1]. I'm using application
>> by passsing following parameter to erl_start:
>>
>>
>> ["beam", "-K", "true", "--",
>> "-noinput",
>> "-boot_var", "APK", path + "/apk.ez",
>> "-kernel", "inetrc", "\""+ path + "/erlang/bin/erl_inetrc\"",
>> "-native_lib_path", path + "/lib",
>> "-sasl", "errlog_type", "all",
>> "-boot", path + "/erlang/bin/start",
>> "-root", path + "/apk.ez/assets",
>> "-eval", "R = application:start(somapp), io:format(\"~w~n\",[R])."]
>>
>> The thread start but the application isn't launched. for the boots
>> script i'm using the minimal one created during the bootstrap.
>>
>> Any idea how I could log what happen on boot. The thread is just
>> running without any error published. I can open more code if needed.
>>
>>
>> - benoit
>>
>> [1] https://github.com/benoitc/otp/tree/OTP_R16B_ANDROID
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>



More information about the erlang-questions mailing list