Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Extension/src/Debugger/debugAdapterDescriptorFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -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();
}

Expand Down Expand Up @@ -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);
}
Comment on lines +109 to 113
Loading