Bug 929824 - Pretty print RDP on receive. r=robcee

This commit is contained in:
J. Ryan Stinnett 2013-10-22 20:41:57 -05:00
parent 958b16ee0d
commit 8eb5b9f012

View File

@ -68,9 +68,7 @@ DebuggerTransport.prototype = {
* they are passed to this method.
*/
send: function DT_send(aPacket) {
let data = wantLogging
? JSON.stringify(aPacket, null, 2)
: JSON.stringify(aPacket);
let data = JSON.stringify(aPacket);
data = this._converter.ConvertFromUnicode(data);
data = data.length + ':' + data;
this._outgoing += data;
@ -192,7 +190,9 @@ DebuggerTransport.prototype = {
return true;
}
dumpn("Got: " + packet);
if (wantLogging) {
dumpn("Got: " + JSON.stringify(parsed, null, 2));
}
let self = this;
Services.tm.currentThread.dispatch(makeInfallible(function() {
// Ensure the hooks are still around by the time this runs (they will go