View Issue Details

IDProjectCategoryView StatusLast Update
0002403XdebugStep Debuggingpublic2026-09-08 17:25
Reporterxavierleune Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformfrankenphp 
Product Version3.5.1 
Fixed in Version3.6.0alpha1 
Summary0002403: Reinit debugger for requests in FrankenPHP worker mode
Description

The current implementation is not ideal to debug worker mode.
You need to:

  1. add your breakpoint before starting the worker
  2. call xdebug_connect_to_client (and that's included in symfony runtime) but it bypasses the xdebug.start_with_request=trigger configuration

It's possible to offer a better support of worker mode by hooking with frankenphp and enable / disable profiling when needed.

TagsNo tags attached.
Operating System
PHP Version8.5.0-8.5.4

Activities

derick

2026-05-10 16:15

administrator   ~0007491

Can you be a lot more elaborate here? I don't know what PHP's "worker mode" is about.

Xdebug will try to connect to an IDE when a request starts, or when you call xdebug_connect_to_client, or when it sees a request triggered through its control sockets (https://xdebug.org/docs/step_debug#control_socket).

derick

2026-08-19 09:57

administrator   ~0007523

https://github.com/xdebug/xdebug/pull/1063

derick

2026-08-19 09:59

administrator   ~0007524

I have merged the PR after a rebase. Thanks!