豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 59c2315

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

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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)