下一步使用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

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

最简单的Xdebug 这个 Firefox 的扩展是为了让 IDE 的调试更容易。您可以在 https://addons.mozilla.org/en-US/firefox/addon/the-easiest-xdebug/.

找到扩展

Chrome 的 Xdebug 助手 此 Chrome 扩展将帮助您 enable/disable 只需单击一下即可进行调试和分析。您可以在 https://chrome.google.com/extensions/detail/eadndfjplgieldjbigjakmdgkmoaaaoc.

找到扩展

用于 Safari 的 Xdebug 切换器 Safari 的这个扩展允许您从 Safari 中自动启动 Xdebug 调试。您可以从 Github https://github.com/benmatselby/xdebug-toggler.

获取

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