* Login   * Register


Last visit was:
It is currently Sat Jul 31, 2010 12:52 pm
View unanswered posts
View active topics




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: trace w/o debug
PostPosted: Mon Dec 29, 2008 9:28 pm 
Offline

Joined: Mon Dec 29, 2008 9:23 pm
Posts: 9
is it possible to get trace output in the console window *without* using the debug perspective? I'm only able to configure debug compiles for a single FDT project / swf rather than the more complex ant compile task I've set up as an external tool. Unfortunately, FDT tasks only seem to support a single output target.

Alternatively (also?), is there a way to configure the debug perspective to not pause at runtime errors?


Top
 Profile  
 
 Post subject: Re: trace w/o debug
PostPosted: Tue Dec 30, 2008 10:04 pm 
Offline

Joined: Mon Dec 29, 2008 9:23 pm
Posts: 9
ok, then i'll answer it myself :wink:

I'm on OS X which has 'tail'
If you're on windows (why aren't you using flashdevelop?) you'll have to use cygwin or get fancy with the batch scripting.

Found this: http://flash-focus.blogspot.com/2007/06 ... ow-in.html
followed those instructions ... then in Eclipse added an External tool configuration:

Run >> External Tools >> External Tools Configurations
New Program
Location: /usr/bin/tail
Arguments: -f "/Users/MYUSER/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt"

I wasn't able to point to the user Library via ~/Library -- maybe that's an eclipse shortcoming...

Launch that, and it appears as one of the running console logs, then you can run your build normally, ANT or what-have-you, and you'll still get the trace output without all the debug perspective stuff, and it's about a zillion times faster. yay!

seems like there ought to be console level configuration somewhere, but I'm no eclipse expert.

hope this helps someone else.


Top
 Profile  
 
 Post subject: Re: trace w/o debug
PostPosted: Wed Dec 31, 2008 1:48 am 
Offline

Joined: Fri May 09, 2008 1:12 pm
Posts: 229
interesting idea :)

But as I understand you just need a logging for your applications.
Is it not easier to try a Logging system for Example SOS?
http://solutions.powerflasher.com/products/sosmax/


Top
 Profile  
 
 Post subject: Re: trace w/o debug
PostPosted: Thu Jan 01, 2009 12:11 am 
Offline

Joined: Mon Dec 29, 2008 9:23 pm
Posts: 9
but then wouldn't i have to use something like myLogger.log(message)
rather than the trace (message) i've become stubbornly attached to?

:wink:

it's not so much that i'm against learning new tricks, but it's nice to be able to trade projects with people who use the Flash IDE or FlashDevelop etc without having a bunch of dependencies just so they can debug.

:j


Top
 Profile  
 
 Post subject: Re: trace w/o debug
PostPosted: Thu Jan 01, 2009 12:00 pm 
Offline

Joined: Fri May 09, 2008 1:12 pm
Posts: 229
sure you will have dependency to a Logging framework of your choice, but it's more comfortable in use and it is just a library. It doesn't depend on your IDE.


Top
 Profile  
 
 Post subject: Re: trace w/o debug
PostPosted: Sun Jan 04, 2009 5:32 am 
Offline

Joined: Mon Dec 29, 2008 9:23 pm
Posts: 9
Quote:
It doesn't depend on your IDE


Right, but some developers i work with *do*. :)

Definitely took a bit of poking to get set up the way i prefer, mostly due to not having any experience with the mx logging classes -- but I have to admit sos is pretty slick. I'll post some configuration details once I'm sure I like what I've got.


Top
 Profile  
 
 Post subject: Re: trace w/o debug
PostPosted: Mon Jan 05, 2009 5:55 pm 
Offline

Joined: Mon Dec 29, 2008 9:23 pm
Posts: 9
shovemedia wrote:
I'll post some configuration details once I'm sure I like what I've got.


http://karoshiethos.com/2009/01/05/fdt-trace-wo-debug-revisited/


Top
 Profile  
 
 Post subject: Re: trace w/o debug
PostPosted: Mon Jan 05, 2009 7:44 pm 
Offline

Joined: Fri May 09, 2008 1:12 pm
Posts: 229
Thnx :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB2 template by N.Design Studio
phpBB3 template by SE-Tuning