Backed out changeset f8f0091f945c (bug 918507) for pushing win8debug m-bc logs over the limit

This commit is contained in:
Wes Kocher 2014-03-11 17:15:44 -07:00
parent c8f68620e9
commit 64bc8828db
2 changed files with 3 additions and 6 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", {});
// Disable logging for faster test runs. Set this pref to false if you want to
// disable logging in your try runs. Both the debugger server and frontend will
// Disable logging for faster test runs. Set this pref to true if you want to
// debug a test in your try runs. Both the debugger server and frontend will
// be affected by this pref.
let gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log");
Services.prefs.setBoolPref("devtools.debugger.log", true);
Services.prefs.setBoolPref("devtools.debugger.log", false);
let { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
let { Promise: promise } = Cu.import("resource://gre/modules/commonjs/sdk/core/promise.js", {});

View File

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