2012-02-22 80 views
1

如果我在netbeans中创建一个新项目并添加换行符,Xdebug完美地工作,没有任何问题。但是对于一个cakephp项目,如果我添加换行符(即使在index.php文件中),xdebug也会忽略它。我想弄清楚发生了什么事。XDEBUG不能在某些cakephp Netbean项目上工作

Xdebug的设置

[xdebug] 
zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" 
xdebug.default_enable=1 
xdebug.remote_enable=1 
xdebug.remote_handler=dbgp 
xdebug.remote_host=localhost 
xdebug.remote_port=9000 
xdebug.remote_autostart=1 
xdebug.auto_trace = 1 

我使用甲基苯丙胺和Netbean我的工具。即使当我使用xdebug_break()它仍然跳过。我确实设置了虚拟主机但不确定是否与之有关

回答

8

在NetBeans的项目首选项中,我很难弄清这一点: ,您必须将Web根设置为应用程序的webroot目录来获得断点的工作。

在另一个笔记中,当监视列表中有变量在触发断点时不在范围内时,NetBeans崩溃。

+0

非常感谢,我实际上指出它是webroot,但非常感谢。 – numerical25 2012-02-23 15:07:19