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...
}]), 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
)
La configurazione che ho usato è:
- flash debugger player 9,0,45
- Firefox 2.0.0.3
- mac osx 10.4.9
buona debuggata ;D
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!
)
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