I am using Xdebug to debug code using hang calls.
In any other code, Xedebug works fine.
But whenever there are client calls using Guzzle, all I get is a timeout.
I use:
- PhpStorm 2017.2
- Docker featuring
richarvey/nginx-php-fpm:latest (nginx + php fpm) - Xdebug on Php 7.1
here is the code snippet where it hangs:
public function fetch(): string { $content = ''; $completePath = self::FETCH_PATH . $this->id; $request = $this->httClient->get($completePath); if ($request->getStatusCode() == 200) { $content = $request->getBody()->getContents(); } return $content; }
source share