Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Is there already a easy way to use the xdebug profiler with the docker/sdk? I tried adding this to m

Options
U018XELUZS9
U018XELUZS9 Posts: 167 🧑🏻‍🚀 - Cadet

Is there already a easy way to use the xdebug profiler with the docker/sdk? I tried adding this to my deploy.development.yml:

  php:
    ini:
      "xdebug.mode": profile

But looks like the problem is, that the xdebug.mode is hardcoded here. I was also not able to manage getting tideways up and running locally.

Comments

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    Hi Alfred,

    What version of docker/sdk do you use?

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    Probably the order of ini files is wrong. Please run the following to figure out how they are read. Thanks.
    php -ini

  • U018XELUZS9
    U018XELUZS9 Posts: 167 🧑🏻‍🚀 - Cadet
    Options

    Looks like this is the problem:

    Configuration File (php.ini) Path: /usr/local/etc/php
    Loaded Configuration File:         /usr/local/etc/php/php.ini
    Scan for additional .ini files in: :/usr/local/etc/php/debug.conf.d
    Additional .ini files parsed:      /usr/local/etc/php/conf.d/90-blackfire.ini,
    /usr/local/etc/php/conf.d/90-opcache.ini,
    /usr/local/etc/php/conf.d/91-opcache-dev.ini,
    /usr/local/etc/php/conf.d/92-session.ini,
    /usr/local/etc/php/conf.d/99-from-deploy-yaml-php.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-bz2.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-exif.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-gd.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-gmp.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-intl.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-pgsql.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-redis.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-soap.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-sockets.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-zip.ini,
    /usr/local/etc/php/debug.conf.d/69-xdebug.ini,
    /usr/local/etc/php/debug.conf.d/92-opcache.ini
    

    I executed docker/sdk cli -x php --ini | xclip -sel clip and pasted that here.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    It seems we need to copy 99-from-deploy-yaml-php.ini in debug.conf.d

  • U018XELUZS9
    U018XELUZS9 Posts: 167 🧑🏻‍🚀 - Cadet
    Options

    I'm on 6d2a1c5ff0d712d32c15ac2c4e505351113c7c74 btw