Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

fix(cdp-smoke): opt into debugger pauses when launching Moli

ldm0b6695d0d5219
diff --git a/moli-cdp-smoke/README.md b/moli-cdp-smoke/README.md
index b52c38f97..ad7daee67 100644
--- a/moli-cdp-smoke/README.md
+++ b/moli-cdp-smoke/README.md
@@ -923,11 +923,14 @@ Useful environment variables:
Moli runs do not need Playwright-managed browser binaries. Chromium runs require
the browser installed by the locked Playwright version, or an explicit override.
-The runner starts `moli serve` with `--layout --resource` so screenshot
+The runner starts `moli serve` with `--layout --resource --debugger` so screenshot
coverage uses the real renderer and the Chromium-derived Network matrix can
observe every optional resource family, including images, audio, video, and
-text tracks. These are smoke-only opt-ins; normal moli defaults remain
-Mock layout with optional resources disabled.
+text tracks. Debugger scenarios require real pauses, which `moli serve` skips
+by default. When testing an external Moli `--endpoint`, start that server with
+`--debugger` to run scenarios that assert debugger statements or breakpoints.
+These options enable the capabilities exercised by this suite; normal Moli
+defaults use Mock layout with optional resources and debugger pauses disabled.
## Relationship to the Node smoke
diff --git a/moli-cdp-smoke/moli_cdp_smoke/serve.py b/moli-cdp-smoke/moli_cdp_smoke/serve.py
index 1d9877e4b..7a00ed670 100644
--- a/moli-cdp-smoke/moli_cdp_smoke/serve.py
+++ b/moli-cdp-smoke/moli_cdp_smoke/serve.py
@@ -102,6 +102,7 @@ async def start_moli_serve(
command = [
str(binary),
"serve",
+ "--debugger",
"--host",
"127.0.0.1",
"--port",