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