PhpStorm 2020.1不响应Chrome Xdebug扩展

问题描述

我在Mac上运行Xdebug 2.9,并且可以在PHPStorm 2020.1中调试PHP脚本,但是当我在一个简单的脚本中设置断点时,我无法让IDE对Chrome Xdebug扩展做出反应我在浏览器上运行。

我激活了扩展名(绿色),并且在扩展名选项中将def generate_table(dataframe,max_rows=10000): return html.Table([ html.Thead( html.Tr([html.Th(col) for col in dataframe.columns]) ),html.Tbody([ html.Tr([ html.Td(dataframe.iloc[i][col]) for col in dataframe.columns ]) for i in range(min(len(dataframe),max_rows)) ]) ],style={ 'margin-right': 'auto','margin-left': 'auto' } ) 设置为IDE密钥,并且我正在侦听PHP调试连接,但是PHPStorm对此没有任何反应。

我也在PHP.ini文件中设置了以下内容

debug.remote_enable = 1

我不知道该配置什么。

编辑::我在网络上使用MAMP for PHP解决方案是取消注释我的MAMP PHP版本的PHP.ini中的“ zend_extension”键,而不是指向我自己的xdebug扩展名。

解决方法

我使用以下ini配置:

xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.idekey = PHPSTORM
xdebug.remote_autostart = off
xdebug.remote_port = 9000

这是我的PHPSTORM配置: enter image description here enter image description here

P.S。:但不适用于cli请求。要为cli请求启用调试,您应该设置:

xdebug.remote_autostart = on

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...