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

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

  • 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

    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

  • Did you try it?

  • U0145CP9Q6Q
    U0145CP9Q6Q Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes i enabled xdebug extension in browser. but no result

  • 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

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

  • U0145CP9Q6Q
    U0145CP9Q6Q Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    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

    That just because you do not pass proper cookie.

  • U0145CP9Q6Q
    U0145CP9Q6Q Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    But i enabled xdebug extension in browser for sure

  • Cookie XDEBUG_SESSION=PHPSTORM

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet
    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

    thank you

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    the port was occupied by my local php-fpm

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    thanks