tags:

views:

77

answers:

2

I'm trying to start an Erlang app that is failing. All I see in the shell is:

=INFO REPORT==== 7-Jan-2010::17:37:42 ===
    application: ui
    exited: {shutdown,{ui_app,start,[normal,[]]}}
    type: temporary

How can I get Erlang to give me more information as to why the application is not starting? There currently is no other output in the shell.

+4  A: 

You could try launching the shell with more logging support:

erl -boot start_sasl

this might get give a bit more details.

jldupont
A: 

It is a pain, but the way I do it is the old fashioned way, by writing io:format's into the start function of the application (ie the code of the module with the behaviour of application) and working out which line fails :(

Sometimes brute force and ignorance is your only man...

Gordon Guthrie
Yea - I _hate_ sticking io:formats in the code just to find out where a crash is... which the Erlang stack traces would give exact line numbers for these type of things as stack traces do in other languages.
Jeremy Raymond