Files
smart_wasm/scripts/debug.bat
2026-06-01 16:45:27 +08:00

18 lines
539 B
Batchfile

@echo off
echo 请在新窗口中运行: python -m http.server 8080
echo 🚀 启动带调试支持的 Chrome...
REM 停止所有 Chrome 实例
taskkill /F /IM chrome.exe 2>nul
REM 使用调试标志启动 Chrome
start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" ^
--remote-debugging-port=9222 ^
--enable-features=WebAssemblyDebugging ^
--no-first-run ^
--user-data-dir="C:\ChromeDebugProfile" ^
http://127.0.0.1:8080/debug.html
echo 🌐 Chrome 已启动,访问 http://localhost:9222 进行调试