Lines Matching full:debug
2 * Minimal debug web console for Duktape command line tool
59 // Commands initiated by the debug client (= us)
92 // String map for commands (debug dumping). A single map works (instead of
137 * strings in the debug protocol, so we must deal accurately with arbitrary
280 * XXX: Currently the debug client formats all values for UI use. A better
322 // Debug protocol integer
424 * based on a raw 'fileName' property provided by the debug target, and
428 * not work in practice. Filenames must match 1:1 with the debug target
430 * search paths will match 1:1 on the debug target. If this is not the
480 // match 1:1 between the debug client and the debug target for e.g.
484 // if the debug target uses the exact same name.
503 * Debug protocol parser
505 * The debug protocol parser is an EventEmitter which parses debug messages
506 * from an input stream and emits 'debug-message' events for completed
507 * messages ending in an EOM. The parser also provides debug dumping, stream
511 * outgoing messages the only function is to validate and debug dump the
790 // Could emit a 'debug-value' event here, but that's not necessary
807 _this.emit('debug-message', msg);
1002 * A debugger instance communicates with the debug target and maintains
1003 * persistent debug state so that the current state can be resent to the
1010 * The debugger instance assumes that if the debug protocol connection is
1021 this.inputParser = null; // parser for incoming debug messages
1022 this.outputParser = null; // parser for outgoing debug messages (stats, dumping)
1030 this.stats = { // stats for current debug connection
1263 // XXX: do pretty printing in debug client for now
1547 console.log('Debug transport connected');
1550 _this.uiMessage('debugger-info', 'Debug transport connected');
1563 // Use a PassThrough stream to debug dump and get stats for output messages.
1578 _this.uiMessage('debugger-info', 'Debug transport closed');
1585 _this.uiMessage('debugger-info', 'Debug transport error: ' + err);
1591 console.log('Debug version identification:', msg.versionIdentification);
1593 … _this.uiMessage('debugger-info', 'Debug version identification: ' + msg.versionIdentification);
1598 _this.uiMessage('debugger-info', 'Debug protocol version: ' + ver);
1616 this.inputParser.on('debug-message', function (msg) {
1625 _this.emit('debug-stats-update');
1633 _this.emit('debug-stats-update');
1864 this.dbg.on('debug-stats-update', function () {
2097 this.socket.emit('debug-stats', this.dbg.stats);
2151 * JSON debug proxy
2297 console.log('Debug transport connected');
2314 console.log('Debug transport closed');
2325 console.log('Debug transport error', err);
2335 console.log('Debug version identification:', msg.versionIdentification);
2347 this.inputParser.on('debug-message', function (msg) {
2426 if (argv['dump-debug-read']) {
2427 optDumpDebugRead = argv['dump-debug-read'];
2429 if (argv['dump-debug-write']) {
2430 optDumpDebugWrite = argv['dump-debug-write'];
2432 if (argv['dump-debug-pretty']) {
2433 optDumpDebugPretty = argv['dump-debug-pretty'];
2449 console.log(' --dump-debug-read: ' + optDumpDebugRead);
2450 console.log(' --dump-debug-write: ' + optDumpDebugWrite);
2451 console.log(' --dump-debug-pretty: ' + optDumpDebugPretty);