Skip to content

write the breakpoints guide page - #13

Merged
carlos-granados merged 1 commit into
mainfrom
breakpoints
Sep 4, 2026
Merged

write the breakpoints guide page#13
carlos-granados merged 1 commit into
mainfrom
breakpoints

Conversation

@carlos-granados

Copy link
Copy Markdown
Contributor

Replaces the breakpoints placeholder with the full guide page, IDE-agnostic throughout.

Covers line, function (call and return), exception, temporary and conditional breakpoints, hit counts and hit conditions, enabling and disabling, and php_debugger_break(). Ends with the caveat about removing breakpoints once you are done with them.

Behaviour verified against handler_dbgp.c and debugger.c rather than upstream docs. Points worth noting:

  • exception matching walks the parent chain, so a parent class catches everything below it, and * catches all
  • PHP error levels (Warning, Notice, Deprecated, Fatal error) are matched as pseudo-exceptions
  • the hit counter only advances on hits where the condition was true, so a condition plus == 3 stops on the third time the condition held, not the third time the line ran
  • temporary breakpoints disable themselves rather than deleting themselves

Note: php_debugger_break() does not exist yet — only xdebug_break() is defined today.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-04 16:35 UTC

@carlos-granados
carlos-granados merged commit f3b885d into main Sep 4, 2026
1 check passed
@carlos-granados
carlos-granados deleted the breakpoints branch September 4, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant