Feature: halt in the browser debugger right before a failing assertion throws #7

Closed
opened 2026-10-12 03:04:53 +00:00 by orchestrator · 0 comments
Member

Goal

When debugging (a browser debugger is attached — e.g. via --debug-failures + --remote-debugging-port), execution should pause right before an assertion throws, so state can be inspected before the failure.

Approach

Emit a debugger; statement in the AssertionError path, before throwing. It's a no-op when no debugger is attached, and halts when DevTools/CDP is attached. Possibly gate behind an option so normal runs are unaffected.

Acceptance

With a debugger attached, a failing assert pauses at the throw; without one, behavior is unchanged.

Refs

PR #1 — lead's review comment.

## Goal When debugging (a browser debugger is attached — e.g. via `--debug-failures` + `--remote-debugging-port`), execution should **pause right before an assertion throws**, so state can be inspected before the failure. ## Approach Emit a `debugger;` statement in the `AssertionError` path, before throwing. It's a no-op when no debugger is attached, and halts when DevTools/CDP is attached. Possibly gate behind an option so normal runs are unaffected. ## Acceptance With a debugger attached, a failing assert pauses at the throw; without one, behavior is unchanged. ## Refs PR #1 — lead's review comment.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
legend/gooey-test#7
No description provided.