Elektrine lite

← Feed

@Flyingmana@phpc.social

2026-02-06 17:08 UTC

@Xdebug @derickr do you have an idea how to approach it? Maybe as a patch for xdebug itself to trigger a php method as soon as a breakpoint halts?

Replies (1)

  • @zimzat@mastodon.social 2026-02-06 17:34

    @Flyingmana @Xdebug @derickr Conditional breakpoints can be used to execute code so you'd effectively be triggering a span as part of that breakpoint, the condition would just always be true. Your IDE may also be able to do something of that nature with a Watch. https://www.jetbrains.com/help/phpstorm/examining-suspended-program.html#edit-watch It triggers at least when the breakpoint suspends, though maybe more. Exiting the span would still be a problem though.

    Open ##1651178