From b6695d0d52191b5cbf8e876e77cea4a99c2fcc46 Mon Sep 17 00:00:00 2001 From: ldm0 Date: Wed, 21 Oct 2026 22:06:37 +0800 Subject: [PATCH] fix(cdp-smoke): opt into debugger pauses when launching Moli --- moli-cdp-smoke/README.md | 9 ++++++--- moli-cdp-smoke/moli_cdp_smoke/serve.py | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/moli-cdp-smoke/README.md b/moli-cdp-smoke/README.md index b52c38f97c..ad7daee675 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 1d9877e4b0..7a00ed670c 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",