Stawiam breakpoint w kontrolerze, włączam nasłuchiwanie connections (zieloną słuchawkę), pdpalam skrypt .php Guzzle w konsoli ale nie zatrzymuje się na breakpoincie.
php.ini który czyta konsola ma tak:
[xdebug] zend_extension ="c:/wamp64/bin/php/php7.1.5/zend_ext/php_xdebug-2.5.3-7.1-vc14-x86_64.dll" xdebug.idekey=PHPSTORM xdebug.remote_enable=1 xdebug.remote_port=9000 ;xdebug.profiler_enable=1 xdebug.profiler_enable_trigger = Off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir ="c:/wamp64/tmp" xdebug.show_local_vars=0
-------------------------------------
edit: zrobiłem podobnie jak tu https://confluence.jetbrains.com/display/Ph...s+with+PhpStorm i działa
<?php require __DIR__ . '/vendor/autoload.php'; $client = new \GuzzleHttp\Client([ 'base_url' => 'http://localhost', 'defaults' => [ 'exceptions' => false ] ]); $debuggingQuerystring = ''; $debuggingQuerystring = 'XDEBUG_SESSION_START=' . $_GET['XDEBUG_SESSION_START']; } $debuggingQuerystring = 'XDEBUG_SESSION_START=PHPSTORM'; } $debuggingQuerystring = 'start_debug=' . $_GET['start_debug']; } $debuggingQuerystring = 'XDEBUG_SESSION_START=PHPSTORM'; } ... ); $response = $client->post('/foo/web/app_dev.php/api/programmers' .'?'. $debuggingQuerystring, [ 'body' => json_encode($data) ]);