微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧪

双开浏览器·调试自动化

Chrome Debug Launcher · v1.0.1
专业技能 安全 B 级 作者 chengzongxin 公开目录收录
1.2k 下载 0 安装 4.2k 收藏 18 浏览

简介

一键双开 Chrome 浏览器实例,同时提供常规浏览与远程调试端口,专为 Web 自动化测试与开发者调试设计

原始描述

Launch two independent Chrome browser instances — one normal and one with remote debugging enabled on port 9222. Activate when user says "打开两个浏览器", "开调试浏览器",...

通过你的 Agent 添加

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/chrome-debug-launcher/
Codex CLI~/.codex/skills/chrome-debug-launcher/
DeepSeek Harness~/.agents/skills/chrome-debug-launcher/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: chrome-debug-launcher description: Launch two independent Chrome browser instances — one normal and one with remote debugging enabled on port 9222. Activate when user says "打开两个浏览器", "开调试浏览器", "launch chrome debug", or any similar request to open a debug Chrome alongside a normal Chrome.

Chrome Debug Launcher

Launch two independent Chrome instances: one normal, one with remote debugging on port 9222.

Steps

  1. Kill all Chrome processes
  2. Launch normal Chrome (no extra args)
  3. Wait 2 seconds, then launch debug Chrome

Commands by Platform

Windows (PowerShell)

# Step 1: Kill Chrome
taskkill /F /IM chrome.exe /T 2>$null
Start-Sleep -Seconds 2

# Step 2: Normal Chrome
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe"

# Step 3: Debug Chrome (after 2s)
Start-Sleep -Seconds 2
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" -ArgumentList '--remote-debugging-port=9222', '--user-data-dir=C:\selenum\ChromeProfile'

macOS (bash)

# Step 1: Kill Chrome
pkill -f "Google Chrome" 2>/dev/null; sleep 2

# Step 2: Normal Chrome
open -a "Google Chrome"

# Step 3: Debug Chrome (after 2s)
sleep 2
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --remote-debugging-port=9222 \
  --user-data-dir="$HOME/selenium/ChromeProfile" &

Result

  • Instance 1: Normal Chrome, default profile, regular use
  • Instance 2: Debug Chrome, port 9222, isolated user data dir
    • Connect via Selenium/Playwright: http://localhost:9222

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

browser-automationseleniumplaywrightchrome-devtoolsweb-testingdebuggingprocess-management

同类 Skill