mac下phpstorm配置xdebug
2016-08-31 13:35
281 查看
1.下载地址 http://www.xdebug.org/download.php,下载源码版的
安装好后提示安装目录:
Installing shared extensions: /usr/local/Cellar/php55/5.5.38/lib/php/extensions/no-debug-zts-20121212/
之后在php.ini中加入:
[Xdebug]
zend_extension=xdebug.so
xdebug.remote_enable = on
;xdebug.remote_handler=dbgp
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9111
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.remote_autostart = on
重启apache,
sudo apachectl restart
打开phpstorm,file->Default Preferences->Languages & Frameworks
php language level: 我这里是5.5
default interpreters :新建一个,php路径写你的php地址
![](https://img-blog.csdn.net/20160831120833434?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](https://img-blog.csdn.net/20160831120903028?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
DBGP Proxy设置:
![](https://img-blog.csdn.net/20160831133030017?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
接下来配置server,我这个版本里面没有server。在run->debug Configurations 里设置
![](https://img-blog.csdn.net/20160831133227754?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
添加server
![](https://img-blog.csdn.net/20160831133329271?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
接下来就可以调试了。。
tar -zxvf xdebug-2.4.0rc3.tgz cd xdebug-2.4.0RC3/ 使用whereis phpize查看phpize的路径 whereis phpize
执行使用详细路径的phpize make make install
安装好后提示安装目录:
Installing shared extensions: /usr/local/Cellar/php55/5.5.38/lib/php/extensions/no-debug-zts-20121212/
之后在php.ini中加入:
[Xdebug]
zend_extension=xdebug.so
xdebug.remote_enable = on
;xdebug.remote_handler=dbgp
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9111
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.remote_autostart = on
重启apache,
sudo apachectl restart
打开phpstorm,file->Default Preferences->Languages & Frameworks
php language level: 我这里是5.5
default interpreters :新建一个,php路径写你的php地址
DBGP Proxy设置:
接下来配置server,我这个版本里面没有server。在run->debug Configurations 里设置
添加server
接下来就可以调试了。。
相关文章推荐
- phpStorm配置xdebug调试总结 [Mac/Linux]
- Ubuntu15.10/Mac PhpStorm中配置Xdebug调试环境
- Mac下PHPstorm的xdebug配置
- Mac Phpstorm IDE 配置 Xdebug
- Mac下PHP-XAMPP-PhpStorm-Xdebug断点调试配置
- mac下phpstorm配置xdebug工具
- PHPStorm下XDebug配置
- Ubuntu 14.04.1 LTS 安装PHPStorm,配置Xdebug
- 为 PhpStorm 配置 Xdebug 来调试代码
- 为 PhpStorm 配置 Xdebug 来调试代码
- phpstorm配置Xdebug进行调试PHP教程
- mac下Netbeans中xdebug的配置
- 在PhpStorm中配置XDebug调试PHP代码
- PHPStorm下XDebug配置
- 为PHPStorm配置Xdebug调试环境
- PHPStorm下XDebug配置
- PhpStorm 配置Xdebug
- PhpStorm配置xDebug
- 为 PhpStorm 配置 Xdebug 来调试代码
- phpstorm跟wamp之间的xdebug配置