Skip to content
Discussion options

You must be logged in to vote

I can debug with xdebug in worker mode just fine.

Settings:

15-xdebug.ini

[xdebug]
zend_extension=xdebug-zts-85

xdebug.mode=debug
xdebug.start_with_request=trigger
xdebug.client_host=localhost
xdebug.client_port=9003
xdebug.ide_key="phpstorm"

Caddyfile:

{$SERVER_NAME:http://} {
    root ./public
    log
    encode zstd br gzip
    php_server {
        root ./public
        worker index.php 1
    }
}

Runner (SymfonyRuntime 8.0):

        $handler = function () use ($server, &$sfRequest, &$sfResponse): void {
            // Connect to the Xdebug client if it's available
            if (\extension_loaded('xdebug') && \function_exists('xdebug_connect_to_client')) {
                xdebug_conn…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@henderkes
Comment options

Comment options

You must be logged in to vote
2 replies
@xavierleune
Comment options

@xavierleune
Comment options

Answer selected by xavierleune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants