Skip to content

Commit 59c2315

Browse files
committed
refactor: set process titles for easier debugging
1 parent f7ae9e8 commit 59c2315

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/bin/chrome-devtools-mcp.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9+
process.title = "chrome-devtools-mcp";
10+
911
import {version} from 'node:process';
1012

1113
const [major, minor] = version.substring(1).split('.').map(Number);
@@ -31,4 +33,5 @@ if (major < 20) {
3133
process.exit(1);
3234
}
3335

36+
3437
await import('./chrome-devtools-mcp-main.js');

src/bin/chrome-devtools.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9+
process.title = "chrome-devtools";
10+
911
import process from 'node:process';
1012

1113
import type {Options, PositionalOptions} from 'yargs';

0 commit comments

Comments
 (0)