let file = Components.classes["@mozilla.org/file/directory_service;1"].
getService(Components.interfaces.nsIProperties).
get("ProfD", Components.interfaces.nsIFile);
How can I test XPCOM interfaces outside of my addon? I tried using firebug/firefox console but it doesn’t work there. There is something like xpcom shell… but I have to compile firefox on my own.
Thanks that’s easier than I thought. Is it possible to use chrome module outside my extension? For example in firefox console? For example if I’d like to test OS.File directly from the console it would speed up development a lot. Is there an option in firefox that enables it ? Or maybe some console addon.