feat: add command execution logging for debugging

Added debug logging to print the exact cs-cloud command being executed.
This helps verify that arguments are passed correctly when debugging cloud hang issues.

Co-Authored-By: claude-sonnet-4-6 <noreply@anthropic.com>
This commit is contained in:
DoSun 2026-05-20 14:13:52 +08:00
parent b6e9b1ba4e
commit 6901484dd7

View File

@ -232,6 +232,9 @@ function getCloudRawArgs(): string[] {
async function runCsCloud(args: string[]): Promise<void> {
const bin = await ensureCsCloud()
// Print the exact command being executed for debugging
console.error(`[DEBUG] Executing: ${bin} ${args.join(" ")}`)
// Close stdin to prevent blocking, inherit stdout/stderr
const child = spawn(bin, args, {
stdio: ["ignore", "inherit", "inherit"],