Title: Setting up a Firefox development profile
Slug: setting-up-a-firefox-development-profile
Date: 2010-04-29 14:46:00
Author: Kartones
Lang: en
Tags: Tools, Testing, Development
Description: A guide on setting up multiple Firefox profiles for personal browsing, development, and testing.

 <p>I am a Firefox lover, but I also have to daily fight with its problems, from Flash hangs (I wish it had the multi-threaded Chrome or IE8 approach), to Firebug heavy slowness or huge memory consumption when you have a bunch of addons installed and active (specially developer ones).</p> <p>One trick that Selenium does and I've learned also to do at work (and now apply at home) is to create multiple Firefox profiles, so that I have one for personal browsing and another one for development (and in fact, a third "clean" one just for pure testing). This way, I have all my bookmarklets, greasemonkey scripts and adblocking rules on when browsing, but Firebug, Web Developer <a href="https://blog.kartones.net/page/firefox-addons">and other addons</a> do not interfiere or slow my browsing experience.</p> <p>So let's get to it. This works with any Firefox 3.x version and almost sure with previous ones also.</p> <p>First, duplicate your Firefox launching shorcut, and modify it to add to the command line "<i> –<b>profilemanager</b> </i>". </p> <p>Run it. The profile manager will appear, create a new profile. (I'll call mine "<i>Development</i>")</p> <p><img src="https://images.kartones.net/posts/kartonesblog/multiplefirefoxprofiles.jpg" title="Firefox profile manager" alt="Firefox profile manager" mce_src="https://images.kartones.net/posts/kartonesblog/multiplefirefoxprofiles.jpg"></p> <p>Edit your new shorcut, remove the " <b><i>–profilemanager</i></b> " fragment and add " <b><i>-P "Development" -no-remote </i></b>". With this, you force Firefox to load a specific profile (without prompting) while allowing multiple instances (beware, one per profile only).</p> <p>With this, we have both profiles ready to use. But to avoid nasty caching surprises (of which Firefox is a common troublemaker), I encourage also to fully disable the cache:</p> <p>Type "<b><i>about:config</i></b>" in the URL bar. Search for "<b><i>browser.cache.disk.enable</i></b>" and "<b><i>browser.cache.memory.enable</i></b>" and set them to <b><i>false</i></b>.</p> <p> </p> <p>And perfect! Now you can install all development addons on it and perfectly refresh Javascript and CSS changes with a simple F5 without worrying about caching issues.</p>
