php.ini的配置,下面的配置仅供参考,路径要换成自己的!
[xdebug]zend_extension="D:\wamp\php-5.6.2-x64\ext\php_xdebug-2.2.5-5.6-vc11-x86_64.dll"xdebug.remote_enable = Onxdebug.remote_handler = dbgpxdebug.remote_host= localhostxdebug.remote_port = 9000xdebug.idekey = PHPSTORM
【或者使用PHPstudy:其他选项菜单/PHP扩展设置/PHP扩展/XDEBUG打上对钩】 ### 2.PHPSTORM设置楼主以前一直用zendstudio,刚开始用phpstorm非常蛋疼,用了一段时间后发现还挺好用的~ 1.首先检查phpstorm的xdebug配置 这里的debug port要和php.ini里面的xdebug.remote\_port相一致!默认是9000,如果9000端口被占用的话,可以改成其他端口。

- 进入File>Settings>PHP>Debug,看到XDebug选项卡,port填9000,其他默认
- 进入File>Settings>PHP>Debug>DBGp Proxy,IDE key 填 phpStorm,host 填localhost,port 填80
点OK退出设置。
添加本地的 web server~ www.mall.com是我本地的服务
3.开始调试 1. 打好第一个断点,shift + F9就可以了打好第一个断点,选中配置的debug, 按旁边的臭虫 按钮
或者还是看不懂,好吧,那请看下面链接: http://wenku.baidu.com/link?url=osFXlDZtbYW2yOxJYwKukXButWW647d2d87-d69F56FmbU1Wi7YNK-KCGcrL-car-o1U\_r2Y0xkXnqoZw2I87FsKdMb7Z9N9pZZvB1a8Lrq 常见问题: Debug session was finished without being pausedIt may be caused by path mappings misconfiguration or not synchronized local and remote projects.To figure out the problem check path mappings configuration for 'www.test.com' server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu). 没有打断点或者调试没有被监测到,碰到这个问题,看看路径配置对了吗是否能访问到
评论1
暂时没有评论