2012-02-22 72 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