簡體   English   中英

XDEBUG在某些Cakephp Netbean項目上不起​​作用

[英]XDEBUG not working on certain cakephp Netbean projects

如果我在netbeans中創建一個新項目並添加換行符,則Xdebug可以完美地工作而不會出現問題。 但是對於cakephp項目,如果我添加了換行符(即使在index.php文件中),xdebug也會忽略它。 我試圖弄清楚發生了什么。

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

我正在使用MAMP和Netbean作為我的工具。 即使當我使用xdebug_break()它仍然會跳過。 我確實設置了虛擬主機,但是不確定是否與此有關

我真的很難弄清楚這一點:在NetBeans的項目首選項中,必須將Web根目錄設置為應用程序的webroot目錄,以使斷點起作用。

另一方面,當監視列表中的變量在觸發斷點時不在范圍內時,我曾使NetBeans崩潰。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM