Improve debug logging by printing character codes

This commit is contained in:
Daniel Imms
2019-09-12 11:06:22 -07:00
parent 91691085f6
commit 293f54e8dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ export class InputHandler extends Disposable implements IInputHandler {
const cursorStartX = buffer.x;
const cursorStartY = buffer.y;
this._logService.debug('parsing data', data);
this._logService.debug(`parsing data "${data}"`, data.split('').map(e => e.charCodeAt(0)));
if (this._parseBuffer.length < data.length) {
this._parseBuffer = new Uint32Array(data.length);
+1 -1
View File
@@ -54,7 +54,7 @@ export class CoreService implements ICoreService {
}
// Fire onData API
this._logService.debug('sending data', data);
this._logService.debug(`sending data "${data}"`, data.split('').map(e => e.charCodeAt(0)));
this._onData.fire(data);
}
}