Skip to content

Commit e719452

Browse files
committed
Debug failing swift-testing test
1 parent 737bb7c commit e719452

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/debugger/debugAdapterFactory.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ export class LLDBDebugConfigurationProvider implements vscode.DebugConfiguration
156156

157157
private async promptForCodeLldbSettings(): Promise<void> {
158158
const libLldbPathResult = await getLLDBLibPath(this.toolchain);
159+
/* eslint-disable no-console */
160+
console.log(">>> libLldbPathResult", libLldbPathResult);
161+
console.log(">>> libLldbPathResult success", libLldbPathResult.success);
162+
console.log(">>> libLldbPathResult failure", libLldbPathResult.failure);
159163
if (!libLldbPathResult.success) {
160164
const errorMessage = `Error: ${getErrorDescription(libLldbPathResult.failure)}`;
161165
vscode.window.showWarningMessage(
@@ -166,12 +170,19 @@ export class LLDBDebugConfigurationProvider implements vscode.DebugConfiguration
166170
}
167171
const libLldbPath = libLldbPathResult.success;
168172
const lldbConfig = vscode.workspace.getConfiguration("lldb");
173+
console.log(">>> lldbConfig library", lldbConfig.get<string>("library"));
174+
console.log(
175+
">>> lldbConfig launch.expressions",
176+
lldbConfig.get<string>("launch.expressions")
177+
);
178+
169179
if (
170180
lldbConfig.get<string>("library") === libLldbPath &&
171181
lldbConfig.get<string>("launch.expressions") === "native"
172182
) {
173183
return;
174184
}
185+
console.log(">>>>>>>> PROMPTING!");
175186
const userSelection = await vscode.window.showInformationMessage(
176187
"The Swift extension needs to update some CodeLLDB settings to enable debugging features. Do you want to set this up in your global settings or workspace settings?",
177188
{ modal: true },

test/integration-tests/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ suite("Test Explorer Suite", function () {
147147

148148
const lldbPath =
149149
process.env["CI"] === "1"
150-
? { "lldb.library": await getLLDBDebugAdapterPath() }
150+
? {
151+
"lldb.library": await getLLDBDebugAdapterPath(),
152+
"lldb.launch.expressions": "native",
153+
}
151154
: {};
152155

153156
resetSettings = await updateSettings({

0 commit comments

Comments
 (0)