使用Xdebug的下一步是什么

时间:2015-03-18 20:05:50

标签: php laravel xdebug

我正在使用PhpStorm和laravel 5.我已经完成了以下步骤并打开了我的laravel 5项目。我现在该怎么做才能开始调试?我不知道phpStorm方面的这个过程的下一步。

说明

Download xdebug-2.3.1.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.3.1.tgz
Run: cd xdebug-2.3.1

Run: phpize (See the FAQ if you don't have phpize.

As part of its output it should show:

Configuring for:
...
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.
Run: ./configure
Run: make
Run: cp modules/xdebug.so
Edit /etc/php.ini and add the line
zend_extension = /xdebug.so
Restart the webserver

1 个答案:

答案 0 :(得分:0)

以下是设置phpstorm的教程 - https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html

您还需要在浏览器中触发调试器 -

最简单的Xdebug Firefox的这个扩展是为了使用IDE更容易调试而构建的。您可以在https://addons.mozilla.org/en-US/firefox/addon/the-easiest-xdebug/找到该扩展程序。

Chrome的Xdebug Helper 此Chrome扩展程序可帮助您通过单击启用/禁用调试和分析。您可以在https://chrome.google.com/extensions/detail/eadndfjplgieldjbigjakmdgkmoaaaoc找到该扩展程序。

Safari的Xdebug Toggler Safari的这个扩展允许您从Safari中自动启动Xdebug调试。你可以从https://github.com/benmatselby/xdebug-toggler的Github那里得到它。

Opera的Xdebug发射器 Opera的这个扩展允许您从Opera启动Xdebug会话。