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..

Hello. I pulled the latest docker/sdk. How to enable xdebug on YVES? I started containers with `dock

Options
U0145CP9Q6Q
U0145CP9Q6Q Posts: 123 🧑🏻‍🚀 - Cadet

Hello. I pulled the latest docker/sdk. How to enable xdebug on YVES? I started containers with docker/sdk start -x but i don't see even xdebug extension in phpinfo.

Comments

  • Unknown
    Options

    Hi Alex! AFAIK -x option does not have any effect right now. You can use browser extension that sets XDEBUG_SESSION cookie.

  • U0145CP9Q6Q
    U0145CP9Q6Q Posts: 123 🧑🏻‍🚀 - Cadet
    Options

    but there is even no xdebug extension if i do phpinfo() in index.php on yves for example. session cookie will not have any effect

  • Unknown
    Options

    Did you try it?

  • U0145CP9Q6Q
    U0145CP9Q6Q Posts: 123 🧑🏻‍🚀 - Cadet
    Options

    yes i enabled xdebug extension in browser. but no result

  • Unknown
    Options

    Okay, unfortunately we don’t have updated documentation yet but maybe @ULYHPR789 can help you here

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

    Please, make a screenshot of request you expect to be debugged.

  • U0145CP9Q6Q
    U0145CP9Q6Q Posts: 123 🧑🏻‍🚀 - Cadet
    Options

    i don't have time for this. I aleady reinstalled everything with old version of docker/sdk.
    Now i see xdebug extension in phpinfo()
    But this is just a standard request to the homepage for example.

    Here is a screenshot of phpinfo() with old version
    With new version I don't have it

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

    That just because you do not pass proper cookie.

  • U0145CP9Q6Q
    U0145CP9Q6Q Posts: 123 🧑🏻‍🚀 - Cadet
    Options

    But i enabled xdebug extension in browser for sure

  • Unknown
    Options

    Cookie XDEBUG_SESSION=PHPSTORM

  • UM9F81RCP
    UM9F81RCP Posts: 516 🧑🏻‍🚀 - Cadet
    Options

    I have the cookie set up in my browser but still xdebug does not start

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options
    1. Please, change host in config to spryker.
    2. Also, please, check 9000 port locally. It can be occupied by other process.
  • UM9F81RCP
    UM9F81RCP Posts: 516 🧑🏻‍🚀 - Cadet
    Options

    thank you

  • UM9F81RCP
    UM9F81RCP Posts: 516 🧑🏻‍🚀 - Cadet
    Options

    the port was occupied by my local php-fpm

  • UM9F81RCP
    UM9F81RCP Posts: 516 🧑🏻‍🚀 - Cadet
    Options

    thanks