We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0c6d04 commit 5696cceCopy full SHA for 5696cce
2 files changed
scripts/test.mjs
@@ -68,6 +68,7 @@ async function runTests(attempt) {
68
env: {
69
...process.env,
70
CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS: true,
71
+ CHROME_DEVTOOLS_MCP_CRASH_ON_UNCAUGHT: true,
72
},
73
});
74
src/main.ts
@@ -58,9 +58,11 @@ if (args.usageStatistics) {
58
59
}
60
61
-process.on('unhandledRejection', (reason, promise) => {
62
- logger('Unhandled promise rejection', promise, reason);
63
-});
+if (process.env['CHROME_DEVTOOLS_MCP_CRASH_ON_UNCAUGHT'] !== 'true') {
+ process.on('unhandledRejection', (reason, promise) => {
+ logger('Unhandled promise rejection', promise, reason);
64
+ });
65
+}
66
67
logger(`Starting Chrome DevTools MCP Server v${VERSION}`);
const server = new McpServer(
0 commit comments