Add more logging around browser toolbox process creation to diagnose an orange (bug 918507). r=vporof,rcampbell

This commit is contained in:
Panos Astithas 2014-03-11 18:15:42 +02:00
parent 97a3c94f26
commit de5985045e
2 changed files with 6 additions and 3 deletions

View File

@ -6,11 +6,11 @@ const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
let { Services } = Cu.import("resource://gre/modules/Services.jsm", {}); let { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
// Disable logging for faster test runs. Set this pref to true if you want to // Disable logging for faster test runs. Set this pref to false if you want to
// debug a test in your try runs. Both the debugger server and frontend will // disable logging in your try runs. Both the debugger server and frontend will
// be affected by this pref. // be affected by this pref.
let gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log"); let gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log");
Services.prefs.setBoolPref("devtools.debugger.log", false); Services.prefs.setBoolPref("devtools.debugger.log", true);
let { Task } = Cu.import("resource://gre/modules/Task.jsm", {}); let { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
let { Promise: promise } = Cu.import("resource://gre/modules/commonjs/sdk/core/promise.js", {}); let { Promise: promise } = Cu.import("resource://gre/modules/commonjs/sdk/core/promise.js", {});

View File

@ -109,11 +109,14 @@ BrowserToolboxProcess.prototype = {
// The profile exists but the corresponding folder may have been deleted. // The profile exists but the corresponding folder may have been deleted.
var enumerator = Services.dirsvc.get("ProfD", Ci.nsIFile).parent.directoryEntries; var enumerator = Services.dirsvc.get("ProfD", Ci.nsIFile).parent.directoryEntries;
dumpn("enumerator: "+enumerator);
while (enumerator.hasMoreElements()) { while (enumerator.hasMoreElements()) {
let profileDir = enumerator.getNext().QueryInterface(Ci.nsIFile); let profileDir = enumerator.getNext().QueryInterface(Ci.nsIFile);
dumpn("profileDir: "+profileDir.leafName);
if (profileDir.leafName.contains(profileName)) { if (profileDir.leafName.contains(profileName)) {
// Requested profile was found and the folder exists. // Requested profile was found and the folder exists.
this._dbgProfile = profileObject; this._dbgProfile = profileObject;
dumpn("found profile: "+profileObject);
return; return;
} }
} }