+2010-11-22 Ilya Tikhonovsky <loislo@chromium.org>
+
+ Reviewed by Pavel Feldman.
+
+ Web Inspector: dump inspector protocol messages into console.
+ Sometimes I need to dump inspector messages into console.
+ It'd be much simple to have this code in repository and
+ enable protocol dumping just by a flag.
+
+ https://bugs.webkit.org/show_bug.cgi?id=49905
+
+ * inspector/CodeGeneratorInspector.pm:
+ * inspector/front-end/WorkersSidebarPane.js:
+ (WebInspector.WorkersSidebarPane.prototype.reset):
+ * inspector/front-end/inspector.js:
+ (WebInspector_syncDispatch):
+
2010-11-22 Andreas Kling <kling@webkit.org>
Reviewed by Nikolas Zimmermann.
request.seq = WebInspector.Callback.wrap(args[0]);
}
+ if (window.dumpInspectorProtocolMessages)
+ console.log("frontend: " + JSON.stringify(request));
+
var message = JSON.stringify(request);
InspectorFrontendHost.sendMessageToBackend(message);
}
// This function is purposely put into the global scope for easy access.
WebInspector_syncDispatch = function(message)
{
+ if (window.dumpInspectorProtocolMessages)
+ console.log("backend: " + ((typeof message === "string") ? message : JSON.stringify(message)));
+
var messageObject = (typeof message === "string") ? JSON.parse(message) : message;
var arguments = [];