Elektrine lite

← Feed

@Flyingmana@phpc.social

Post #1651176

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 (2)

  • @derickr@phpc.social 2026-02-06 17:11

    @Flyingmana @Xdebug Can't really do that, as that would change the behaviour of the problem that you're trying to debug 😕 .

    Open ##1651177

  • @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