`
xushaoxun
  • 浏览: 52801 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
社区版块
存档分类
最新评论

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


Eclipse调试

  • PHP Executable

  • PHP Debug
  • Debug As

  • Launch URL

  • Web Browser

  • 大小: 21.3 KB
  • 大小: 13.8 KB
  • 大小: 7.6 KB
  • 大小: 10.3 KB
  • 大小: 12.1 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics