[英]XDebug not establishing connection in NetBeans
My XDebug extension is not establishing its connection with netbeans. 我的XDebug扩展未建立与netbeans的连接。 Following are the settings which i have placed in php.ini file: 以下是我在php.ini文件中放置的设置:
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost:8080"
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
Please help me in figuring out the problem. 请帮助我解决问题。 Any help would be appreciated. 任何帮助,将不胜感激。
To debug your php code in Netbeans IDE you should enable XDebug
in Netbeans. 要在Netbeans IDE中调试php代码,您应该在Netbeans中启用XDebug
。 To do that goto Tools
- Options
there select PHP
tab and ensure that Debugging port and session ID matching with your XDebug
configuration in php.ini
file. 为此,转到Tools
- Options
,然后选择PHP
选项卡,并确保Debugging端口和会话ID与php.ini
文件中的XDebug
配置相匹配。 After that click on OK. 之后,单击确定。
Change your php.ini
file like this. 像这样更改您的php.ini
文件。
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
;xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1" <--- here
xdebug.trace_output_dir = "C:\xampp\tmp"
And restart your Apache server [XAMPP or WAMP]. 并重新启动Apache服务器[XAMPP或WAMP]。
If this solution not working goto localhost
in your browser select PHP version tab right click select all and copy the contents and paste it here . 如果此解决方案无法正常工作,请在浏览器中转到“ localhost
,然后选择“ PHP版本”选项卡,右键单击“全选”,然后复制内容并将其粘贴到此处 。 If you have old version of XDebug
then download the latest php_xdebug.dll
file. 如果您使用的是旧版本的XDebug
下载最新的php_xdebug.dll
文件。 Copy it to C:\\xampp\\php\\ext\\
directory and it's done. 将其复制到C:\\xampp\\php\\ext\\
目录,然后完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.