Posts Tagged ‘ Mac OSX ’

 
Saturday, August 30th, 2008

Since it has been created i’ve been a fan of flash tracer extension, i really fell in love with that tool, but i noticed it slow down the browser and can even make it crash.

So, let’s open a trace logger on our terminal…

To do that the right command is “tail” which actually “[...]Print  the  last 10 lines of each FILE to standard output[...]” and the file to open is located in /Users/[your username]/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt

Then, let’s do something good and useful with that:

open your TextEdit, cmd+shift+T to switch to plain text, write down this one line command:

tail -f /Users/[your username]/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt

save the file as “flashtracer.sh” and use sh as file extension instead of txt.

then right click on the file, reach the “open with” menu and choose “terminal” application located inside utility folder. Note: it would be great if you set terminal as default application to open that file :)

ok, now everything’s ready; double click on flashtracer.sh and start tracing :)

Note: remember you’re in a shell now, so you can clear up the lines with cmd+K…

I hope it can be useful,

byez :)

I had this nasty problem on my leopard box. I installed flash tracer extension for firefox but nothing was displaied in…

Normally every traced line is written into flashlog.txt file…but actually no flashlog file was being generated! so problem wasn’t on that usefull extension but in flashplayer configuration.

So, here’s the solution i found out:
look for “mm.cfg” file into /Library/Application Support/Macromedia,
then open it with a text editor and write these two lines:

ErrorReportingEnable=1
TraceOutputFileEnable=1

Then save and restart flash player ( just restart your browser…).. Magically flashlog.txt is now being generated and flashtracer start working fine :D

NOTE: if you don’t find any mm.cfg file just create it with your text editor and put those 2 lines in it :)

 
Monday, September 3rd, 2007

Di recente ho installato Flash Tracer, l’estensione per Firefox di Sephiroth (aka Alessandro Crugnola), sul mio mac…
Fiducioso sono andato a visitare un lavoro pubblicato di recente, ma avviato il tracer ottenevo sempre lo stesso messaggio di errore:
[Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsILocalFile.lastModifiedTime]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://trace/content/tracer.js :: readfile :: line 168" data: no]

Dopo un po’ di ricerche su google e con un pò di fortuna sono arrivato a trovare l’inghippo.

Andate su Macintosh HD:Library:Application Support:Macromedia
e aprite il file mm.cfg con TextEdit.

All’interno ci sono dei parametri per la configurazione del flash player, tra cui anche la voce “TraceOutputFileName”.
Se il vostro debug player è successivo alla versione 9,0,28 cancellate in tronco la voce, altrimenti NON FATE NULLA (o altrimenti provate lo stesso, ma a vostro rischio e pericolo [il massimo che può accadere è che dobbiate reinstallare il player{anche se vi conviene comunque fare un backup del file e poi semmai ripristinate quello... :D }]), poi salvate il file.

Aprite Firefox, accendete il flash tracer e andate su “opzioni” per modificare il path dove vengono salvati i log del flash debugger player.
il path da inserire è:
Macintosh HD:Users:vostro username:Library:Preferences:Macromedia:Flash Player:Logs:flashlog.txt
cliccate su ok, e magicamente inizierete a vedere i trace del flash aperto (sempre che ne abbia :D )

La configurazione che ho usato è:

  • flash debugger player 9,0,45
  • Firefox 2.0.0.3
  • mac osx 10.4.9

buona debuggata ;D


Make Flash Tracer run properly on Mac Osx

Recently I installed Flash Tracer, Sephiroth’s (aka Alessandro Crugnola) firefox extension, on my mac…
Confident on my new ‘game’ I got visiting one of my lastest works, but once started flash tracer I only got the same error:
[Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsILocalFile.lastModifiedTime]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://trace/content/tracer.js :: readfile :: line 168" data: no]

After some googling and with a bit of luck I got it!

Step 1
IF YOUR DEBUG PLAYER VERSION IS > 9,0,28
To correct the “bug” you have to get here with your finder
Macintosh HD:Library:Application Support:Macromedia
then open mm.cfg file with TextEdit

mm.cfg contents flash player configuration. Inside you have to find out the line with “TraceOutputFileName”.

IF YOUR DEBUG PLAYER VERSION IS > 9,0,28 you have to delete that line, otherwise don’t do anything with this file.

Step 2
Open your Firefox, turn on flash tracer and open options dialog to modify the path for your debug player log.
The correct path is:
Macintosh HD:Users:your username:Library:Preferences:Macromedia:Flash Player:Logs:flashlog.txt
Then click ok and “magically” you’ll start see your flash tracer TRACING!(if any swf is communicating with it! :D )

This is the configuration which I used to get Flash tracer run properly:

  • flash debugger player 9,0,45
  • Firefox 2.0.0.3
  • mac osx 10.4.9

good debugging ;D