We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca0f560 commit 62c37daCopy full SHA for 62c37da
src/main.ts
@@ -6,6 +6,7 @@
6
7
import './polyfill.js';
8
9
+import process from 'node:process';
10
import type {Channel} from './browser.js';
11
import {ensureBrowserConnected, ensureBrowserLaunched} from './browser.js';
12
import {parseArguments} from './cli.js';
@@ -33,6 +34,10 @@ export const args = parseArguments(VERSION);
33
34
35
const logFile = args.logFile ? saveLogsToFile(args.logFile) : undefined;
36
37
+process.on('unhandledRejection', (reason, promise) => {
38
+ logger('Unhandled promise rejection', promise, reason);
39
+});
40
+
41
logger(`Starting Chrome DevTools MCP Server v${VERSION}`);
42
const server = new McpServer(
43
{
0 commit comments