mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 929824 - Pretty print RDP on receive. r=robcee
This commit is contained in:
parent
958b16ee0d
commit
8eb5b9f012
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user