Far*_*jil 8 php netbeans virtualbox remote-debugging xdebug
我正在尝试在以下场景中使用XDebug
192.168.1.240192.168.1.240 mysite\\HostIP\html\mysite,具有R/W权限我在计算机上创建了一个Netbeans项目,指向\\HostIP\html\mysite.在项目运行配置中,我有以下内容:
http://mysite/在高级运行配置中:
我在CentOS VM上的php.ini中有以下内容
;extension=xdebug.so
zend_extension="/usr/lib64/php/modules/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_log="/var/log/xdebug.log"
;xdebug.remote_host=192.168.1.31
xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
Run Code Online (Sandbox Code Playgroud)
注意:我尝试了配置extension=xdebug.so并尝试xdebug.remote_connect_back=1使用uncomment xdebug.remote_host=192.168.1.31进行评论,这是我的计算机IP地址.
所以基本上我有像这个图像的所有配置

但还是不行!运行后,调试器将打开此URL
http://mysite/index.php?XDEBUG_SESSION_START=netbeans-xdebug
Run Code Online (Sandbox Code Playgroud)
并且没有任何事情会发生只是netbeans上市等待Xdebug连接
小智 0
尝试为执行的脚本设置任何断点。当 ide 不尊重“在第一行中断”标志时,调试会话可能不会显示。
还要检查 php.ini 中的 xdebug.idekey 属性是否等于 Netbeans 设置中的 ideKey。
| 归档时间: |
|
| 查看次数: |
4390 次 |
| 最近记录: |