Skip to content

Commit b4ba586

Browse files
committed
🤖 debug: add logging to LocalBaseRuntime.exec for WSL tracing
1 parent 45e8ec1 commit b4ba586

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/node/runtime/LocalBaseRuntime.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ export abstract class LocalBaseRuntime implements Runtime {
7676
cwd: spawnCwd,
7777
} = getPreferredSpawnConfig(command, cwd);
7878

79+
// Debug logging for Windows WSL issues
80+
log.info(`[LocalBaseRuntime.exec] Original command: ${command}`);
81+
log.info(`[LocalBaseRuntime.exec] Original cwd: ${cwd}`);
82+
log.info(`[LocalBaseRuntime.exec] Spawn command: ${bashCommand}`);
83+
log.info(`[LocalBaseRuntime.exec] Spawn args: ${JSON.stringify(bashArgs)}`);
84+
log.info(`[LocalBaseRuntime.exec] Spawn cwd: ${spawnCwd}`);
85+
7986
// If niceness is specified on Unix/Linux, spawn nice directly to avoid escaping issues
8087
// Windows doesn't have nice command, so just spawn bash directly
8188
const isWindows = process.platform === "win32";

0 commit comments

Comments
 (0)