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

Hey guys, is it possible to debug Zed calls made from glue api with xdebug?

UTPQSF0FJ
UTPQSF0FJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

Hey guys, is it possible to debug Zed calls made from glue api with xdebug?

Comments

  • schoenfeld
    schoenfeld Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yes. Add xdebug cookie to your glue request

  • UTPQSF0FJ
    UTPQSF0FJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

    done. xdebug is working until httpclient is making request to zed.

  • schoenfeld
    schoenfeld Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    ok - then check our config, FORWARD XDEBUG SESSION => true

  • schoenfeld
    schoenfeld Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet
    $config[ZedRequestConstants::TRANSFER_DEBUG_SESSION_FORWARD_ENABLED] = true;
    
  • UTPQSF0FJ
    UTPQSF0FJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

    doesnt work.

  • schoenfeld
    schoenfeld Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2020

    Added to config_local and no opcache on?

  • UTPQSF0FJ
    UTPQSF0FJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes!

  • (Assuming you use PHPStorm) do you have the zed server also configured on the debug? Is the mapping right?

  • UTPQSF0FJ
    UTPQSF0FJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

    yep

  • The amount of simultaneous connections is good enough (I use 10 πŸ˜„)

  • UKU1E0ENB
    UKU1E0ENB Posts: 34 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi Kevin, there is a 2nd way. You can always repeat the last call from a client to Zed with this url:

    <http://zed.url/zed-request/transfer/repeat>
    

    You will see the output of Zed in our browser then. Regular debugger of Zed requests works here (and you can also var_dump() if you like).

    If it doesn’t work you need to check if this is set in your config files.

    ZedRequestConstants::ENABLE_REPEAT = true;
    

    The POST data which is used to run this last request is placed in a file last_yves_request.log