Skip to content

Commit 4e1e681

Browse files
fix: 删除 debug 限制
1 parent a7d9a22 commit 4e1e681

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"request": "attach",
77
"name": "Attach to Claude Code",
88
"url": "ws://localhost:8888/2dc3gzl5xot",
9-
"preLaunchTask": "Start Claude Code TUI",
109
"stopOnEntry": false,
1110
"internalConsoleOptions": "neverOpen"
1211
}
1312
]
14-
}
13+
}

src/main.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,7 @@ function isBeingDebugged() {
511511
}
512512
}
513513

514-
// Exit if we detect node debugging or inspection
515-
if ("external" !== "ant" && isBeingDebugged()) {
516-
// Use process.exit directly here since we're in the top-level code before imports
517-
// and gracefulShutdown is not yet available
518-
// eslint-disable-next-line custom-rules/no-top-level-side-effects
519-
process.exit(1);
520-
}
514+
521515

522516
/**
523517
* Per-session skill/plugin telemetry. Called from both the interactive path

0 commit comments

Comments
 (0)