简体   繁体   English

Netbeans-XDebug调试

[英]Netbeans - XDebug Debugging

I have setup a new dev environment using windows for the first time. 我第一次使用Windows设置了新的开发环境。 I have WAMP installed and I am using netbeans as my IDE and have XDebug installed and reference in my php.ini file. 我已经安装了WAMP,并且正在使用netbeans作为我的IDE,并且已经安装了XDebug,并在我的php.ini文件中进行了引用。

; XDEBUG Extension

zend_extension = "c:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"

which points to my xdebug.dll file. 指向我的xdebug.dll文件。

When I try to debug within netbeans however, it is not stopping on any of my breakpoints. 但是,当我尝试在netbeans中进行调试时,它并没有在我的任何断点处停止。 Any ideas of how to get it correctly debug by stopping at my breakpoints? 关于如何通过在我的断点处停止调试来正确调试它的任何想法? Also just to verify that i am going to the page in question with my firefox browser so its not that I am not running the code 也只是为了验证我是否要使用Firefox浏览器转到有问题的页面,因此并不是我没有运行代码

在此处输入图片说明

Netbeans调试配置

I added the following to my php.ini file and now debugging is stopping on my breakpoints in netbeans 我在php.ini文件中添加了以下内容,现在调试在netbeans中的断点处停止

xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM