phpstorm+xdebug怎么配置
这篇文章将为大家详细讲解有关phpstorm+xdebug怎么配置,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
1、phpinfo中提示XDEBUG NOT LOADED AS ZEND EXTENSION信息
PHP5.3之前版本配置Xdebug时使用zend_extension_ts,
对于PHP5.3以上版本,使用zend_extension。
出现的原因 :
出现XDEBUG NOT LOADED AS ZEND EXTENSION的原因是在安装Xdebug时由于我们将Xdebug的DLL文件复制到了php\ext目录下,容易以PHP扩展库的形式加载Xdebug,在php.ini文件中添加了
extension=php_xdebug-2.1.0-5.3-vc6.dll
这是错误的Xdebug安装方式,必须以zend方式加载。
我的php是5.2.5,所以是zend_extension_ts="d:/wamp/php/php_xdebug.dll"
2、xdebug配置:
[Xdebug]xdebug.profiler_enable=onxdebug.auto_trace = onxdebug.collect_params = 1xdebug.collect_return = onxdebug.show_local_vars = onxdebug.idekey="PHPSTORM"xdebug.remote_autostart = onxdebug.remote_mode=reqxdebug.trace_output_dir="d:/wamp/tmp/"xdebug.profiler_output_dir="d:/wamp/tmp"xdebug.remote_enable=1xdebug.remote_host=localhostxdebug.remote_port=9000xdebug.remote_handler=dbgp
3、phpstorm配置:
dbgp proxy配置时,idekey,host不用说,port一定是80,之前一直写的9000或者9001老是不行。
4、xdebug下载
Xdebug版本:"Windows modules for PHP 5.1.2-5.1.7、Windows modules for PHP 5.2.1-5.2.7"
关于"phpstorm+xdebug怎么配置"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
- 上一篇
spring boot自动注入出现Consider defining a bean of type ‘xxx‘ in your configuration问题怎么解决
这篇文章主要介绍"spring boot自动注入出现Consider defining a bean of type 'xxx' in your configuration问题怎么解决",在日常操作中
- 下一篇
ES6新特性常用的知识点有哪些
这篇文章主要介绍了ES6新特性常用的知识点有哪些,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。1.关键字Let 关键字 在let所在的