dsg24156 2015-03-18 20:05
浏览 157
已采纳

使用Xdebug的下一步是什么

I'm using PhpStorm and laravel 5. I have done the following steps below and have my laravel 5 project open. What must i do now to start debugging? I do not know the next steps in this process on the phpStorm side.

Instructions

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条回答 默认 最新

  • duanjigua5753 2015-03-18 20:16
    关注

    Here is the tutorial for setting up phpstorm - https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html

    You will also need to trigger the debugger in the browser -

    The easiest Xdebug This extension for Firefox was built to make debugging with an IDE easier. You can find the extension at https://addons.mozilla.org/en-US/firefox/addon/the-easiest-xdebug/.

    Xdebug Helper for Chrome This extension for Chrome will help you to enable/disable debugging and profiling with a single click. You can find the extension at https://chrome.google.com/extensions/detail/eadndfjplgieldjbigjakmdgkmoaaaoc.

    Xdebug Toggler for Safari This extension for Safari allows you to auto start Xdebug debugging from within Safari. You can get it from Github at https://github.com/benmatselby/xdebug-toggler.

    Xdebug launcher for Opera This extension for Opera allows you to start an Xdebug session from Opera.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺