From a1e1b424faee57f991024b48d2d2a9823f1a6934 Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Mon, 15 Jun 2026 12:48:06 -0700 Subject: [PATCH] add a fallback message for unsupported RWD configs --- Extension/src/Debugger/debugAdapterDescriptorFactory.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Extension/src/Debugger/debugAdapterDescriptorFactory.ts b/Extension/src/Debugger/debugAdapterDescriptorFactory.ts index c20c12719..0e1423def 100644 --- a/Extension/src/Debugger/debugAdapterDescriptorFactory.ts +++ b/Extension/src/Debugger/debugAdapterDescriptorFactory.ts @@ -38,6 +38,7 @@ export class CppdbgDebugAdapterDescriptorFactory extends AbstractDebugAdapterDes } // If the configuration is not supported, gracefully fall back to a regular debug session and log a message to the user. logReasonForNoDebugNotSupported(session.configuration); + logFallbackMessage(); properties.noDebugSkipped = true.toString(); } @@ -62,6 +63,7 @@ export class CppvsdbgDebugAdapterDescriptorFactory extends AbstractDebugAdapterD } // If the configuration is not supported, gracefully fall back to a regular debug session and log a message to the user. logReasonForNoDebugNotSupported(session.configuration); + logFallbackMessage(); properties.noDebugSkipped = true.toString(); } @@ -102,5 +104,10 @@ function logReasonForNoDebugNotSupported(configuration: vscode.DebugConfiguratio if (configuration.coreDumpPath) { outputChannel.appendLine(localize("debugger.noDebug.coreDumpPath.not.supported", "Run Without Debugging is not supported for configurations with 'coreDumpPath' set.")); } +} + +function logFallbackMessage(): void { + const outputChannel = getOutputChannel(); + outputChannel.appendLine(localize("debugger.fallback.message", "Falling back to a regular debug session.")); outputChannel.show(true); }