2012-03-16 105 views
1

我只是改變我的操作系統到Windows 7 64. 我有我的機器上安裝PDT的Apache 2.2,PHP 5.3(32位)TS和Eclipse 3.7(64位)。在圖像上,如圖我的php.inixDebug會議永遠不會啓動

zend_extension = "C:\Program Files (x86)\PHP\ext\php_xdebug-2.1.4-5.3-vc9.dll" 
xdebug.auto_trace = 0 
xdebug.collect_includes = 1 
xdebug.collect_params = 0 
xdebug.collect_return = 0 
xdebug.default_enable = 1 
xdebug.extended_info = 1 
xdebug.idekey = "STATION24$" 
xdebug.max_nesting_level = 100 
xdebug.profiler_append = 0 
xdebug.profiler_enable = 0 
xdebug.profiler_enable_trigger = 1 
xdebug.profiler_output_dir = "C:\WINDOWS\temp" 
xdebug.profiler_output_name = "xdebug_profile.%p" 
xdebug.remote_autostart = 0 
xdebug.remote_enable = 1 
xdebug.remote_handler = "dbgp" 
xdebug.remote_host = "localhost" 
xdebug.remote_log = 1 
xdebug.remote_mode = "req" 
xdebug.remote_port = 9001 
xdebug.show_exception_trace = 0 
xdebug.show_local_vars = 0 
xdebug.show_mem_delta = 1 
xdebug.trace_format = 0 
xdebug.trace_output_dir = "C:\WINDOWS\Temp" 
xdebug.trace_output_name = "trace.%c" 
xdebug.var_display_max_depth = 5 

在Eclipse中我已經配置PHP->調試節

XDebug的部分:

enter image description here enter image description here enter image description here

而現在,當我嘗試啓動調試時,Eclipse會在啓動調試會話時凍結。

enter image description here

所以,我想了解在過去的這個問題,有人說這是因爲某些應用程序中使用Xdebug的端口(在我的9001),但我檢查,沒有其他使用此端口,只有xDebug做。 我的防火牆已禁用,因此沒有任何應用程序可以阻止與xDebug的連接。還有一件事 - 「作爲CLI應用程序調試」效果不錯,只有「作爲Web應用程序調試」不起作用。

我不知道該怎麼做,請幫忙。

+0

問題已解決。我只是忘了在Eclipse設置中設置瀏覽器。 – sempasha 2012-03-16 05:32:09

回答

0

如果遇到問題並且您不知道Xdebug端是不是工作,或者IDE端,那麼從Xdebug 2.2.0RC1遠程調試日誌也會記錄連接問題。

0

只是一個想法,你提到PHP TS。也許你應該使用xdebug TS呢? (雖然我到處讀過,最好不要使用TS,所以可能想更改php而不是TS)。