如何在PhpStorm中配置xdebug?

问题描述:

我在网上阅读了几篇教程,但没有成功。如何在PhpStorm中配置xdebug?

zend_extension=/usr/lib/php/20131226/xdebug.so 
xdebug.remote_enable=true 
xdebug.remote_port=9000 
xdebug.profiler_enable=1 
xdebug.profiler_output_dir=/tmp 

enter image description here

我有以下PhpStorm设置:我在php.ini文件这样的配置XDebug的

enter image description here

我把下面的断点,但它不会工作,如果我要加载页面

enter image description here

+0

它总是一个好主意,调试选项卡指定你试图看到的“几个教程”1)他们告诉做什么2)也许提供另一个。现在我只能说:1)https://confluence.jetbrains.com/display/PhpStorm/Debugging+with+PhpStorm 2)你可能会错过你已经阅读过的那些教程中的一个步骤 - 你的图片不要反映你开始调试的所有步骤。 – LazyOne

+0

是的,我使用完全相同的教程,你指定 – rick1

+0

https://www.jetbrains.com/phpstorm/documentation/debugging/ –

你必须添加侦听PhpStorm

enter image description here enter image description here enter image description here

然后你会在底部

enter image description here enter image description here

+0

什么监听器?我需要在哪里配置它? – rick1

+0

看截图,在你的主工具栏上有一个下拉菜单 – DarkMukke

+0

是的,我有编辑配置选项,但是我需要做下一步吗? – rick1