Php 配置xdebug调试器,以便使用netbeans调试通过web浏览器启动的脚本
我正在尝试配置xdebug调试器,以便使用netbeans调试通过web浏览器启动的脚本 情景Php 配置xdebug调试器,以便使用netbeans调试通过web浏览器启动的脚本,php,debugging,netbeans,Php,Debugging,Netbeans,我正在尝试配置xdebug调试器,以便使用netbeans调试通过web浏览器启动的脚本 情景 mypc localhost linux ubuntu16.04 apache2.4 php7.2 netbeans8.2 IDE both script.php and IDE in mypc xdebug配置 $sudo nano/etc/php/7.2/mods-available/xdebug.ini zend_extension=xdebug.so ;debugger_clients (r
mypc localhost
linux ubuntu16.04
apache2.4
php7.2
netbeans8.2 IDE
both script.php and IDE in mypc
xdebug配置
$sudo nano/etc/php/7.2/mods-available/xdebug.ini
zend_extension=xdebug.so
;debugger_clients (remote)
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
;xdebug.remote_host=localhost
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_connect_back=On
$sudo nano/etc/php/7.2/apache2/php.ini
output_buffering=Off
$sudo netstat-ltnp | grep:9000
空输出
netbeansIDE,工具>选项>PHP>调试>
SessionID:netbeansxdebug
德布格波特:9000
然后我创建了一个netbeans项目并配置了
如果我尝试从netbeans以调试模式执行脚本(单击调试>)
调试模式工作
相反,若我试图在web浏览器的调试模式下执行脚本,那个么调试模式就不起作用了
脚本执行时不会中断
我还尝试安装了firefox扩展“Xdebug Helper for firefox”,但没有成功这是因为netbeans并不总是在侦听 netbeans仅在您单击Debug>按钮后侦听端口9000 这不是一个很大的限制
没关系这不是WP问题,属于stackoverflow