set_exception_breakpoint
Set breakpoints to pause PHP debugging when specific exceptions occur, enabling targeted error investigation during development.
Instructions
Set a breakpoint that triggers when a specific exception is thrown. Can be set before a debug session starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exception | No | Exception class name to break on (use '*' for all exceptions, or specific like 'RuntimeException') | * |
| session_id | No | Session ID |