Skip to content

fix(xdebug): exception breakpoint examples name a class, not Throwable - #405

Merged
butschster merged 1 commit into
masterfrom
fix/xdebug-exception-bp-examples
Nov 7, 2026
Merged

butschster merged 1 commit into
masterfrom
fix/xdebug-exception-bp-examples

Conversation

@butschster

Copy link
Copy Markdown
Member

What

Text-only follow-up to #403. Xdebug matches an exception breakpoint on the thrown class and its parent classes, not on interfaces, so -x Throwable is accepted and never fires. The examples in the MCP xdebug_breakpoint_set schema hint, the SavedBreakpoint.Exception doc comment and the normalize() error text now show RuntimeException, App\Exceptions\PaymentFailed and *, and say interfaces do not match. No behaviour change.

Checked

  • Live, PHP 8.3.36 + Xdebug 3.4.5, raw DBGp client, script throws RuntimeException: -x Throwable → run ends stopping; -x Exception → break; -x * → break.
  • go vet ./modules/xdebug/ clean; go test -count=1 ./modules/xdebug/ ok.

Made with harnsy

Xdebug matches an exception breakpoint on the thrown class and its parent
classes, never on interfaces: "Throwable" is accepted and never fires.
The MCP schema hint, doc comment and error text now show RuntimeException
and "*" and say interfaces do not match.
@butschster butschster added the type: bug Something is broken or behaves incorrectly label Nov 7, 2026
@butschster
butschster merged commit a473caf into master Nov 7, 2026
1 check passed
@butschster
butschster deleted the fix/xdebug-exception-bp-examples branch November 7, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something is broken or behaves incorrectly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant