PhpStorm debugger not stopping at BreakPoints; keeps waiting for xdebug _SESSION_

前端 未结 15 1635
挽巷
挽巷 2021-01-31 14:21

Updated question : PhpStorm | WebMatrix (IISExpress) | Xdebug.remote_port | — Which Port(s) to put where?


I\'m running localhost web server on my Windows machine w

15条回答
  •  南方客
    南方客 (楼主)
    2021-01-31 14:56

    I was having this same problem while trying to test a Laravel project using XAMPP on Windows in PHPStorm. I have no idea what exactly I was doing wrong, but I did get it working eventually. I followed the step-by-step instructions on the PHPStorm site here.

    One thing I think that was not configured right was that there was no interpreter set up in the PHP menu in Settings.

    I was also trying a few too many combinations of settings in my php.ini. These were the settings that I have when things were working:

    zend_extension = C:\xampp\php\ext\php_xdebug-2.3.2-5.6-vc11.dll //as recommended from the Xdebug site itself 
    xdebug.remote_enable=1=
    xdebug.profiler_enable=1
    xdebug.profiler_output_name = "cachegrind.out.%t-%s"
    

    In my Run/Debug Configurations, I use a PHP Web Application setting, that just starts on the root of the site. (At first, I thought the appended ?XDEBUG_SESSION_START= was a mistake, but it is not). Hopefully that might help if someone else is facing a similar issue.

提交回复
热议问题