Wednesday, July 22, 2009

Choosing a browser when debugging flex apps in IntelliJ

IntelliJ calls fdb, the Flex debugger, which in turn uses the OS's "http" file association. This is not always the same as your OS's default browser.
In Windows my "http" file association was IE - even though my default browser was Chrome. You can see what your setup is by running this at the command prompt:
cmd /c ftype http
And if you want to change it, then run this (substitute the path to your browser of choice):
cmd /c ftype http="C:\Program Files (x86)\Mozilla Firefox\firefox.exe" %1
Mine was using I changed the "http" file association to Firefox and now IntelliJ debugs in Firefox like I originally wanted. And now when I type cmd /c ftype http I get the following:
http="C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1"

No comments:

Post a Comment