[Mono-osx] newbie mono developer needs advice on app
Michael Hutchinson
m.j.hutchinson at gmail.com
Sat Mar 5 13:36:50 EST 2011
On Mon, Feb 28, 2011 at 10:03 AM, Brian O'Neill <brian at freshideas.ie> wrote:
> Thanks Michael, I appreciate you taking the time to reply.
> I have created a script just to run our mono test exe on Mac to see if
> adding DYLD_FALLBACK_LIBRARY_PATH will solve our issue.
> It did not solve our problem, we get exception about the libfreetype
> version. I did not yet create the app bundle (plist etc), it's just a sh
> script to run our app in project bin/debug folder.
> Here is script code to run our app:
> -----------
> #!/bin/sh
>
> DIR=$(cd "$(dirname "$0")"; pwd)
> MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/Current
> export
> DYLD_FALLBACK_LIBRARY_PATH="$DIR:$MONO_FRAMEWORK_PATH/lib:/lib:/usr/lib"
> export PATH="$MONO_FRAMEWORK_PATH/bin:$PATH"
> exec mono "$DIR/test.exe"
> ------------------
>
> Now I wanted to see the mono debug info but for some reason I'm not able to
> see/get any debug info.
> If I manually run a command in Terminal: 'MONO_LOG_LEVEL=debug test.exe' I
> will see lots of debug info which is useful to debug problems.
>
> I wanted to get the same debug info when running script but I can't get
> anything. Was trying several options with MONO_LOG_LEVEL=debug and without
> it. With --debug etc.
> When running script below debuglog.txt file is created but there no debug
> info, file is empty. When running this script I only see new Terminal window
> and then our test app will start. There is no debug info anywhere.
> Debug script version:
> ------------
> #!/bin/sh
>
> DIR=$(cd "$(dirname "$0")"; pwd)
> MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/Current
> export
> DYLD_FALLBACK_LIBRARY_PATH="$DIR:$MONO_FRAMEWORK_PATH/lib:/lib:/usr/lib"
> export PATH="$MONO_FRAMEWORK_PATH/bin:$PATH"
> MONO_LOG_LEVEL=debug
> exec mono --debug "$DIR/test.exe" $* 2>&1 1> "$DIR/debuglog.txt"
> ------------
>
> Will Terminal window be displayed when running this sh script via Mac .app
Nope. But you can find the output in Console.app.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-osx
mailing list