mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 962541 - Allow debugging the same app on subsequent connections. r=paul
This commit is contained in:
parent
c15179eeee
commit
ae0081be73
@ -1,3 +1,12 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
// Encapsulate in its own scope to allows loading this frame script
|
||||
// more than once.
|
||||
(function () {
|
||||
const {DevToolsUtils} = Cu.import("resource://gre/modules/devtools/DevToolsUtils.jsm", {});
|
||||
const {DebuggerServer, ActorPool} = Cu.import("resource://gre/modules/devtools/dbg-server.jsm", {});
|
||||
|
||||
@ -31,3 +40,4 @@ let onConnect = DevToolsUtils.makeInfallible(function (msg) {
|
||||
});
|
||||
|
||||
addMessageListener("debug:connect", onConnect);
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user