ignore consoleApiCalled messages since they are not used in ui

pull/483/head
nightwing 2018-02-24 01:46:10 +04:00
rodzic 6663329c3f
commit b577ee0f25
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -78,7 +78,15 @@ function Debugger(options) {
self.disconnect();
});
ws.on("message", function incoming(data) {
try {
var parsed = JSON.parse(data);
} catch (e) {
}
// console.log("<<" + data);
// ignore for now since this is noisy, and is not used on the client
if (parsed && parsed.method == "Runtime.consoleAPICalled")
return;
broadcast(data);
});
ws.on("error", function(e) {
@ -128,7 +136,7 @@ function Debugger(options) {
if (this.ws)
this.ws.close();
if (this.v8Socket)
this.v8Socket.close();
this.v8Socket.destroy();
};
}).call(Debugger.prototype);

Wyświetl plik

@ -50,7 +50,6 @@ var DevtoolsProtocol = module.exports = function(socket) {
// TODO add support for threads
break;
case "Runtime.executionContextDestroyed":
console.log(message.params);
this.detachDebugger();
break;
case "Debugger.resumed":