mtasc trace with flash debug player

View: New views
7 Messages — Rating Filter:   Alert me  

mtasc trace with flash debug player

by Chris Bare :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just discovered that adobe has released a flash debug player (even for
linux) that provides a way to log trace() statements to a file. (I feel like
it's 1960 all over again!)

I am trying to get the trace() outout to go to the file from an swf generated
by mtasc, but it doesn't work. If I build the same code in the flash mx IDE,
the traces do appear in the file.

I also tried:

mtasc -trace trace

but that didn't work either. Has anyone gotten this to work? any suggestions?
is mtasc removing the calls to the native trace function?

Is there any other *easy* way to get trace output? I used to use xray, but it's
no longer connecting to my program and there is no way to debug it, and the
osflash site is down.
--
Chris Bare
chris@...

--
MTASC : no more coffee break while compiling

Re: mtasc trace with flash debug player

by Robert Jonathan Molesa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

May not be what you're looking for, but http://luminicbox has suited me
well in the past.

*On Wed, Jul 25, 2007 at 05:06:57PM -0400 Chris Bare <chris@...> wrote:

> To: mtasc@...
> Date: Wed, 25 Jul 2007 17:06:57 -0400 (EDT)
> From: Chris Bare <chris@...>
> X-Mailer: ELM [version 2.4ME+ PL100 (25)]
> Subject: [mtasc] mtasc trace with flash debug player
>
> I just discovered that adobe has released a flash debug player (even for
> linux) that provides a way to log trace() statements to a file. (I feel like
> it's 1960 all over again!)
>
> I am trying to get the trace() outout to go to the file from an swf generated
> by mtasc, but it doesn't work. If I build the same code in the flash mx IDE,
> the traces do appear in the file.
>
> I also tried:
>
> mtasc -trace trace
>
> but that didn't work either. Has anyone gotten this to work? any suggestions?
> is mtasc removing the calls to the native trace function?
>
> Is there any other *easy* way to get trace output? I used to use xray, but it's
> no longer connecting to my program and there is no way to debug it, and the
> osflash site is down.
> --
> Chris Bare
> chris@...
>
> --
> MTASC : no more coffee break while compiling

--
Jon Molesa
rjmolesa@...
if you're bored or curious
http://rjmolesa.com

--
MTASC : no more coffee break while compiling

Re: mtasc trace with flash debug player

by bomberstudios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 7/25/07, Chris Bare <chris@...> wrote:
>
> but that didn't work either. Has anyone gotten this to work? any suggestions?
> is mtasc removing the calls to the native trace function?
>


Take a look at this blog post, it helped me understand how the whole
thing works:

<http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php>

When using MTASC, you don't need to use the -trace parameter unless
you want to disable tracing (by using '-trace no') or use your own
trace function (by using '-trace com.yourdomain.yourTraceFunction')

I can confirm that MTASC works with the debug player, as that's what
I'm using in TextMate for the ActionScript bundle:

<http://bomberstudios.com/2007/03/14/how-to-use-consoleapp-for-flash-debugging/>

Hope it helps...


--
Ale Muñoz
http://sofanaranja.com
http://bomberstudios.com

--
MTASC : no more coffee break while compiling

Re: mtasc trace with flash debug player

by XIX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Is there any other *easy* way to get trace output? I used to use xray, but it's
> no longer connecting to my program and there is no way to debug it, and the
> osflash site is down.


I've been using the following little hack for some time...

FireFox with the firebug extension includes a way of printing to the
console from javascript

so

getURL("javascript:if(console){console.log(\""+s+"\");}");

Prints to that console from flash, you need to fix quotes as well but
you get the gist, just wrap that up in a function.


--

Kriss

http://XIXs.com -><- http://www.WetGenes.com

--
MTASC : no more coffee break while compiling

Re: mtasc trace with flash debug player

by Eric Priou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

getURL("javascript:if(console){console.log(\""+s+"\");}");

Hep, if you don't want to get the troublme to do it yourself, just give a look at :

my 2 cents.
---
Eric Priou aka erixtekila
Oregano XMLSocket server forum : http://www.v-i-a.net/forum



--
MTASC : no more coffee break while compiling

RE: mtasc trace with flash debug player

by Kalani Bright :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I use FlashTracer which is also firefox plugin which shows as an extra
panel...
 https://addons.mozilla.org/en-US/firefox/addon/3469



-----Original Message-----
From: mtasc-bounces@...
[mailto:mtasc-bounces@...] On Behalf Of XIX
Sent: Friday, August 03, 2007 2:51 AM
To: MotionTwin ActionScript2 Compiler List
Subject: Re: [mtasc] mtasc trace with flash debug player

> Is there any other *easy* way to get trace output? I used to use xray,
> but it's no longer connecting to my program and there is no way to
> debug it, and the osflash site is down.


I've been using the following little hack for some time...

FireFox with the firebug extension includes a way of printing to the console
from javascript

so

getURL("javascript:if(console){console.log(\""+s+"\");}");

Prints to that console from flash, you need to fix quotes as well but you
get the gist, just wrap that up in a function.


--

Kriss

http://XIXs.com -><- http://www.WetGenes.com

--
MTASC : no more coffee break while compiling



--
MTASC : no more coffee break while compiling

Re: mtasc trace with flash debug player

by Josh Walker-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kalani Bright wrote:

> I use FlashTracer which is also firefox plugin which shows as an extra
> panel...
>  https://addons.mozilla.org/en-US/firefox/addon/3469
>
>
>
> -----Original Message-----
> From: mtasc-bounces@...
> [mailto:mtasc-bounces@...] On Behalf Of XIX
> Sent: Friday, August 03, 2007 2:51 AM
> To: MotionTwin ActionScript2 Compiler List
> Subject: Re: [mtasc] mtasc trace with flash debug player
>
>  
>> Is there any other *easy* way to get trace output? I used to use xray,
>> but it's no longer connecting to my program and there is no way to
>> debug it, and the osflash site is down.
>>    

Once you install the debug player, place a file named mm.cfg containing
this:

ErrorReportingEnable=1
TraceOutputFileEnable=1
TraceOutputFileName=C:\flashlog.txt

in your home directory.  In winxp, that's c:/Documents and
Settings/[username].  Once you restart flash, you should be able to tail
-f that file to see the trace output as it rolls by.

- josh

--
MTASC : no more coffee break while compiling