2011-05-01 50 views
0

我想在我的PHP項目中使用X-Debug來分析它!
所以我下載的擴展添加爲php.ini並寫下這行太設置X-Debug - PHP

xdebug.profiler_enable = 1
xdebug.profiler_append = 1
xdebug.remote_autostart = 1個
xdebug.trace_options = 1

在phpinfo()我可以看到X-Debug擴展,現在該如何啓動?
Plz help!

This worked, but how to read it :(!
; X-調試配置
xdebug.profiler_enable = 1
xdebug.profiler_append = 1
xdebug.remote_autostart = 1
xdebug.trace_options = 1
xdebug.profiler_output_dir =「E:/ wamp/tmp「
xdebug.profiler_output_name =」cachegrind.out。%s。%H「

回答

0

您需要一個也支持xdebug的IDE。許多編輯支持它,其他人可能需要安裝插件。你在用什麼編輯器?記事本++,Eclipse(和變體),甚至VIM都支持xdebug。

+0

我使用notepad ++! – Sourav 2011-05-01 04:17:15

+0

我在Google上找到了這篇文章[用Notepadd ++設置XDebug](http://amiworks.co.in/talk/debugging-php-using-xdebug-and-notepad-part-i/)另外,如果您使用的是firefox有幾個插件,可以讓你輕鬆切換xdebug的開關狀態。 – Brombomb 2011-05-01 04:18:49