diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fefd3c8..e3e2df0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ ChangeLog * Pathnames for gdb-servers can be OS specific. For instance `cortex-debug.openocdPath` can be suffixed with one of `.linux`, `.osx` or `.windows`. For instance `cortex-debug.openocdPath.windows` is used only on Windows and if that is missing, it will default looking for cortex-debug.openocdPath`. * SWO output can now be logged (saved) to a file just like RTT output * Issues #524 and #525 -* Allow value substitution for J-Link RTOS option +* Improved handling of J-Link RTOS option (file extension), added NuttX #V0.4.7 * Fixed a regression for STLink gdbserver. It was in fact accidentally working in prior releases. The real bug is now fixed. Issue #494 diff --git a/package.json b/package.json index e2bdf487..f5acf730 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.4.8-pre5", + "version": "0.4.8", "activationEvents": [ "onDebugResolve:cortex-debug", "onStartupFinished" diff --git a/src/frontend/server_console.ts b/src/frontend/server_console.ts index 91423aa9..3db96d55 100644 --- a/src/frontend/server_console.ts +++ b/src/frontend/server_console.ts @@ -142,7 +142,7 @@ export class GDBServerConsole { this.createAndShowTerminal(); this.ptyTerm.resume(); this.clearTerminal(); - this.debugMsg('onBackendConnect: gdb-server session connected'); + this.debugMsg('onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.'); socket.setKeepAlive(true); socket.on('close', () => { this.debugMsg('onBackendConnect: gdb-server session closed'); diff --git a/src/gdb.ts b/src/gdb.ts index ae2285e3..5c25294d 100644 --- a/src/gdb.ts +++ b/src/gdb.ts @@ -474,6 +474,10 @@ export class GDBDebugSession extends DebugSession { return '"' + s.replace(/"/g, '\\"') + '"'; }).join(' ') + '\n'; this.handleMsg('log', dbgMsg + ` "${this.args.executable}"`); + if (!this.args.showDevDebugOutput) { + this.handleMsg('log', 'Set "showDevDebugOutput": true in your "launch.json" to see verbose GDB transactions ' + + 'here. Helpful to debug issues or report problems'); + } } this.disableSendStoppedEvents = (!attach && (this.args.runToEntryPoint || this.args.noDebug)) ? true : false; @@ -1187,9 +1191,9 @@ export class GDBDebugSession extends DebugSession { this.stoppedEventPending = true; } - console.log(info); + // console.log(info); if (type !== 'hit') { - console.log('Local variable watchpoing going out of scope'); + // console.log('Local variable watchpoing going out of scope'); if (info.outOfBandRecord && info.outOfBandRecord[0] && info.outOfBandRecord[0].output) { for (const item of info.outOfBandRecord[0].output) { if (item[0].endsWith('wpnum')) { @@ -1210,7 +1214,7 @@ export class GDBDebugSession extends DebugSession { event: 'removed', seq: 0 }; - console.log(`Watchpoint ${id} deleted`); + // console.log(`Watchpoint ${id} deleted`); this.dataBreakpointMap.delete(id); this.sendEvent(ev); break;