Debugging with Chrome
Dudes/Dudettes, Chrome rocks as the FlexBuilder debug browser.
I use FireFox as my system’s default browser mainly because of the vast selection of extensions that are available. But I don’t want to use FireFox for debugging because how often does it end up crashing your browser. Now you have all those tabs to reload.
Before Chrome I used IE for debugging because it could crash all it wants without screwing anything else up. On the downside, it’s a tad slow starting up.
Chrome starts up fast, very fast. I’d estimate that IE took about 3-5 seconds to launch and get going every time I previewed my Flex app. Chrome gets there in about 1 second.
Setup
To make Chrome your default External Web Browser in FlexBuilder just go to Window -> Preferences… And then open up General and select Web Browser – just like you see in the image above. In my case I had to click the New… button to add Chrome to the list.
Note: you need to add the -sandbox to the Parameters field. You can read more about why that’s needed here.
Now you need to make sure that you have the debug player installed for Chrome. It seems that Chrome picks up whatever player FireFox uses. So if you have the Flash Player debug version for FireFox then you should be good to go. I didn’t because I don’t like using the debug player for my general browsing – because I don’t want to see everyone’s runtime errors. :-)
If you need the debug player then go to the Adobe Flash Player Support Center. When I installed it I ended up with the debug player running in Chrome and FireFox. That’s good and bad. Now I need to get rid of the debug player running in FireFox. I found a blog post by Fabio Varesano at varesano.net that helped out. He needed to install the Flash Player on a machine where he didn’t have administrator rights to do so and found a sweet workaround. His solution worked great for me because if I installed the regular Flash Player for FireFox it would remove it for Chrome as well.
Here’s what I did:
- Download the XPI archive of the Flash Player Plugin - you may need to right-click and save as to download
- Rename the file from flashplayer-win.xpi to flashplayer-win.zip and then unzip the file
- Now copy the flashplayer.xpt and NPSWF32.dll files into your FireFox plugins folder – which should be in %APPDATA%\Mozilla\Plugins\. It turns out that I didn’t have plugins folder for FireFox so I made one. My path eneded up being: C:\Documents and Settings\username\Application Data\Mozilla\Plugins
Once I copied those two files into that folder and restarted FireFox I had the regular Flash Player running in FireFox and the debug Flash Player running in Chrome. Just what I wanted.
Now I can debug faster than ever. Which is good because I have to do lots of debugging of my shitty-code. :-)
If something here has proved valuable to you then feel free to drop a couple of bucks in the tip-jar.






