我正在使用Netbeans來完成我的項目(codeigniter),我的xdebug是在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" xdebug.remote_autostart = 1 xdebug.idekey = "netbeans-xdebug" xdebug.remote_log="C:\xampp\tmp\xdebug.log" xdebug.remote_port=9001
Php info顯示xdebug已激活。我在login方法中設置變量的斷點並開始調試。出現在登錄頁面的鏈接:?
本地主機/ goldilock/index.php的XDEBUG_SESSION_START =於NetBeans XDebug的
後登錄在,斷點不被激活,我不能調試和XDEBUG_SESSION_START = netbeans-鏈接的xdebug部分消失。
有什麼方法可以激活調試。我找不到任何解決方案來將調試器激活到斷點。
的xdebug.log說以下內容:
所有的Log opened at 2013-07-01 05:40:22 I: Connecting to configured address/port: 127.0.0.1:9000. E: Could not connect to client. :-( Log closed at 2013-07-01 05:40:23 Log opened at 2013-07-01 05:40:35 I: Connecting to configured address/port: 127.0.0.1:9000. E: Could not connect to client. :-( Log closed at 2013-07-01 05:40:36 Log opened at 2013-07-01 05:40:38 I: Connecting to configured address/port: 127.0.0.1:9000. E: Could not connect to client. :-( Log closed at 2013-07-01 05:40:39 Log opened at 2013-07-01 05:40:39 I: Connecting to configured address/port: 127.0.0.1:9000. E: Could not connect to client. :-( Log closed at 2013-07-01 05:40:40
幾天後,試圖讓xdebug連接到Netbeans,這救了我。謝謝bro – 2014-03-06 03:29:51
不客氣的David Tay – madi