Skip to content

Commit 749f3a6

Browse files
committed
Debug failing CodeLLDB swift-testing test
1 parent 39fb686 commit 749f3a6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/debugger/debugAdapterFactory.ts

Lines changed: 13 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,6 +170,15 @@ 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+
179+
const allSettings = vscode.workspace.getConfiguration();
180+
console.log(">>> All VS Code settings:", JSON.stringify(allSettings));
181+
169182
if (
170183
lldbConfig.get<string>("library") === libLldbPath &&
171184
lldbConfig.get<string>("launch.expressions") === "native"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ suite("Test Explorer Suite", function () {
150150
? { "lldb.library": await getLLDBDebugAdapterPath() }
151151
: {};
152152

153+
console.log(">>> TEST SETTING lldbPath", lldbPath);
153154
resetSettings = await updateSettings({
154155
"swift.debugger.useDebugAdapterFromToolchain": false,
155156
...lldbPath,

0 commit comments

Comments
 (0)