phpstorm php脚本调试,断点

原创
2016-09-05 08:59:55 1331浏览

简单脚本断点, 此时 不管点运行 还是点击debug
然后等好一会才会断点在那..,开始提示如下
Waiting for incoming connection with ide key '14866'
Waiting for incoming connection with ide key '10627'
每次 ide key都不一样..

不选php web application ,选script,我就是调试一个script脚本, 跟网页没关系!!!

/usr/local/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9001 -dxdebug.remote_host=127.0.0.1 /Users/name/PhpstormProjects/phptest/test.php

回复内容:

简单脚本断点, 此时 不管点运行 还是点击debug
然后等好一会才会断点在那..,开始提示如下
Waiting for incoming connection with ide key '14866'
Waiting for incoming connection with ide key '10627'
每次 ide key都不一样..

不选php web application ,选script,我就是调试一个script脚本, 跟网页没关系!!!

/usr/local/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9001 -dxdebug.remote_host=127.0.0.1 /Users/name/PhpstormProjects/phptest/test.php

  • 安装了Xdebug之类的没

  • Jetbrain的Chrome拓展安装没

  • 那个有电话的绿色按钮点没.debug键的右边第二个

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。