xdebug设置 (for php5.2.9-2), eclipse调试
引用:http://aofengblog.blog.163.com/blog/static/631702120117283414706/
Xdebug设置
- 先安装wamp for php 5.4到d:/dev
- 打开 D:\dev\wamp\bin\apache\Apache#\bin\php.ini,在末尾看到
- 只要把xdebug.remote_enable = off
改 on
就可以了
; XDEBUG Extension
zend_extension = "D:/dev/wamp5.3.13/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"
[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "D:/dev/wamp5.3.13/tmp"
4. 重启wamp
To actually start a debug session, you must pass a parameter XDEBUG_SESSION_START to the script by GET, POST, or cookie.
The value of this parameter is the debug session name, which should be unique at a given point in time,
so that xdebug can distinguish different debug sessions running concurrently.
To end a debug session, you need to pass XDEBUG_SESSION_STOP to the script.
========== config
*** xdebug.remote_mode
There are two different modes of starting a debug session with xdebug.
They are controlled by the php.ini setting .
The default setting is req, which makes xdebug always connect to the debug client when a script is started.
If you want xdebug to only connect to the debug client on a breakpoint or an error in the script,
you can set xdebug.remote_mode to jit.
I would recommend keeping the default setting, which is the default setting
- PHP Executable
- PHP Debug
- Debug As
- Launch URL
- Web Browser