(edit: działa.)

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:
  1. [xdebug]
  2. zend_extension ="c:/wamp64/bin/php/php7.1.5/zend_ext/php_xdebug-2.5.3-7.1-vc14-x86_64.dll"
  3.  
  4. xdebug.idekey=PHPSTORM
  5. xdebug.remote_enable=1
  6. xdebug.remote_port=9000
  7. ;xdebug.profiler_enable=1
  8. xdebug.profiler_enable_trigger = Off
  9. xdebug.profiler_output_name = cachegrind.out.%t.%p
  10. xdebug.profiler_output_dir ="c:/wamp64/tmp"
  11. xdebug.show_local_vars=0

-------------------------------------
edit: zrobiłem podobnie jak tu https://confluence.jetbrains.com/display/Ph...s+with+PhpStorm i działa
  1. <?php
  2. require __DIR__ . '/vendor/autoload.php';
  3. $client = new \GuzzleHttp\Client([
  4. 'base_url' => 'http://localhost',
  5. 'defaults' => [
  6. 'exceptions' => false
  7. ]
  8. ]);
  9.  
  10. $debuggingQuerystring = '';
  11. if (isset($_GET['XDEBUG_SESSION_START'])) { // xdebug
  12. $debuggingQuerystring = 'XDEBUG_SESSION_START=' . $_GET['XDEBUG_SESSION_START'];
  13. }
  14. if (isset($_COOKIE['XDEBUG_SESSION'])) { // xdebug (cookie)
  15. $debuggingQuerystring = 'XDEBUG_SESSION_START=PHPSTORM';
  16. }
  17. if (isset($_GET['start_debug'])) { // zend debugger
  18. $debuggingQuerystring = 'start_debug=' . $_GET['start_debug'];
  19. }
  20. if (empty($debuggingQuerystring)) {
  21. $debuggingQuerystring = 'XDEBUG_SESSION_START=PHPSTORM';
  22. }
  23.  
  24.  
  25.  
  26. $data = array(
  27. ...
  28. );
  29.  
  30.  
  31. $response = $client->post('/foo/web/app_dev.php/api/programmers' .'?'. $debuggingQuerystring, [
  32. 'body' => json_encode($data)
  33. ]);
  34.  
  35. echo $response;
  36.