Declaring the dependencies in your .app.src file is the most idiomatic way I've seen, and they get started for you by the boot script so you don't have to worry about coding that yourself.  See the 'applications' list for the list of applications that should be started before yours.<br>
<br>{{modules}} is a rebar macro that will be replaced with the module names from your project.<br>You have to fill in the 'registered' list yourself.<br><br>example app.src:<br>{application, myapp,<br> [{description, "My Erlang App"},<br>
  {vsn, "1.0.0"},<br>  {modules, [{{modules}}]},<br>  {registered, [registered_process_names]},<br>  {applications, [kernel, stdlib, sasl, mnesia, yaws]},<br>  {mod, {app_callback_module, []}}<br> ]<br>}.<br><br>
For the appmon problem, 1st I recommend using 'observer' instead.  I just started using it with R15B01 and... wow.  The tracing support is phenomenal.  Go Erlang devs!<br><br>To get observer included in your release, add it to your reltool.config like so:<br>
<br>{app, observer, [{incl_cond, include}]},<br><br>-Garret Smith<br><br><div class="gmail_quote">On Mon, Apr 30, 2012 at 12:00 PM, Josh Black <span dir="ltr"><<a href="mailto:raskchanky@gmail.com" target="_blank">raskchanky@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>
                    Excellent!  Thanks Tristan and Bob for the suggestions.  I'll try them out.  Is either one considered more idiomatic?
                </div><div class="HOEnZb"><div class="h5">
                <div></div>
                 
                <p style="color:#a0a0a8">On Monday, April 30, 2012 at 11:48 AM, Tristan Sloughter wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
                    <span><div><div>Correct about why you can't find appmon, but there is an easy way around this. Start the release yourself, you probably have to add your libs to ERL_LIBS first depending how how you have things setup. So like:<div>
<br>
</div><div>$ export ERL_LIBS=$ERL_LIBS:<path to dir with your compiled apps></div><div>$ erl -boot <path to boot file></div><div><br></div><div>This will have your release running in your main erts env, not one created specifically for your release.</div>

<div><br></div><div>Someone else can probably give better instructions based on where rebar places the libs and .boot file, I don't know those.</div><div><br></div><div>Tristan<br><br><div>On Mon, Apr 30, 2012 at 1:05 PM, Josh Black <span dir="ltr"><<a href="mailto:raskchanky@gmail.com" target="_blank">raskchanky@gmail.com</a>></span> wrote:<br>
<blockquote type="cite"><div>
                <div>Hi, erlang beginner here.</div><div><br></div><div>I have a question about the best way to debug apps which include dependencies.</div><div><br></div><div>I'm working on an app, and so far, I've been testing it by using rebar to generate a release, then starting a console for the release and going from there.  The problem comes when I want to use something like dbg or appmon to debug errors or inspect the state of my app.  When I try to do, e.g. appmon:start() from the console for my release, it tells me "undefined function appmon:start/0".  I'm guessing this is because I didn't explicitly specify appmon in my release configuration?</div>

<div><br></div><div>Alternatively, I created a <a href="http://start.sh" target="_blank">start.sh</a> shell script with contents like this:</div><div><br></div><div>erl -pa apps/*/ebin -pa deps/*/ebin -eval 'application:start(dependency1), application:start(dependency2), application:start(myapp).'</div>

<div><br></div><div>This lets me start appmon and whatever else I want when I run into errors, but feels pretty messy and wrong.</div><div><br></div><div>I feel like I'm missing something really obvious here.  What's the correct way to do this?</div>


                 
            <br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></div></blockquote></div><br></div>
</div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            </div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>