引用: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
![](http://dl.iteye.com/upload/attachment/0070/9362/125b70c8-ee14-388c-888c-7ed5b981073a.png)
- PHP Debug
![](http://dl.iteye.com/upload/attachment/0070/9364/64f05ceb-3372-3f00-b0a2-d5f077e57a44.png)
- Debug As
![](http://dl.iteye.com/upload/attachment/0070/9366/db145384-72a2-375e-9f13-216c3f222a84.png)
- Launch URL
![](http://dl.iteye.com/upload/attachment/0070/9368/4268f9fa-0289-3f08-a480-125250c46ef7.png)
- Web Browser
![](http://dl.iteye.com/upload/attachment/0070/9370/ef15c19e-cf2d-3861-ba54-c2201380fb6b.png)