使用Xdebug的下一步是什么


What is the next step in use 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

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

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

最简单的XdebugFirefox的这个扩展是为了让使用IDE进行调试变得更容易。您可以在上找到分机https://addons.mozilla.org/en-US/firefox/addon/the-easiest-xdebug/.

Chrome的Xdebug帮助程序Chrome的这个扩展将帮助您一键启用/禁用调试和分析。您可以在上找到分机https://chrome.google.com/extensions/detail/eadndfjplgieldjbigjakmdgkmoaaaoc.

Safari的Xdebug切换程序Safari的此扩展允许您从Safari中自动启动Xdebug调试。你可以在Github上获得它https://github.com/benmatselby/xdebug-toggler.

Opera的Xdebug启动器Opera的此扩展允许您从Opera启动Xdebug会话。