Add more logging for bug 847558 (on amazon ec2 vm's browser_dbg_createChrome.js hangs on opt builds); rs=robcee

This commit is contained in:
Panos Astithas 2013-05-02 20:39:48 +03:00
Родитель c1489b435d
Коммит eedb27e4b2
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -488,13 +488,16 @@ ChromeDebuggerProcess.prototype = {
close: function RDP_close() {
dumpn("Closing chrome debugging process");
if (!this.globalUI) {
dumpn("globalUI is missing");
return;
}
delete this.globalUI._chromeDebugger;
if (this._dbgProcess.isRunning) {
dumpn("Killing chrome debugging process...");
this._dbgProcess.kill();
}
dumpn("...done.");
if (typeof this._closeCallback == "function") {
this._closeCallback.call({}, this);
}

Просмотреть файл

@ -48,8 +48,8 @@ function testSimpleCall() {
ok(gProcess._dbgProfile.name,
"The remote debugger profile doesn't have a name...");
info("profile localDir: " + gProcess._dbgProfile.localDir);
info("profile rootDir: " + gProcess._dbgProfile.rootDir);
info("profile localDir: " + gProcess._dbgProfile.localDir.path);
info("profile rootDir: " + gProcess._dbgProfile.rootDir.path);
info("profile name: " + gProcess._dbgProfile.name);
let profileService = Cc["@mozilla.org/toolkit/profile-service;1"]
@ -64,7 +64,8 @@ function testSimpleCall() {
is(profile.rootDir.path, gProcess._dbgProfile.rootDir.path,
"The remote debugger profile doesn't have the correct rootDir!");
DebuggerUI.toggleChromeDebugger();
let chromeDebug = DebuggerUI.toggleChromeDebugger();
info("toggleChromeDebugger() returned " + chromeDebug);
}}, 0);
}