Improve debug logging by printing character codes
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
const cursorStartX = buffer.x;
|
const cursorStartX = buffer.x;
|
||||||
const cursorStartY = buffer.y;
|
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) {
|
if (this._parseBuffer.length < data.length) {
|
||||||
this._parseBuffer = new Uint32Array(data.length);
|
this._parseBuffer = new Uint32Array(data.length);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export class CoreService implements ICoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fire onData API
|
// 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);
|
this._onData.fire(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user