`

xdebug and eclipse pdt

 
阅读更多

InstallXDebug


1. Go tohttp://www.xdebug.org/;downloadXdebug(version 2.0.3 at the time of this writing).
2. Putphp_xdebug-2.0.3-5.2.5.dllyou just downloaded to some folder; Add the following line tophp.inifile so that PHP can load it:

[xdebug]
zend_extension_ts="D:/ProgramFiles/PHP5.2/modules/php_xdebug-2.0.3-5.2.5.dll"
xdebug.remote_enable=On
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_log="d:/xdebug.log"

Ensure you place your entries at the bottom of your php.ini file or XDebug could fail to load.

You may need to change the “zend_extension_ts” to “zend_extension” if you are using the non thread safe version of PHP or to “zend_extension_debug” if you are using the debug version. This information can be found by running phpinfo() and locate the following section:
Debug Build => no
Thread Safety => enabled

3. TestingXDebug is installed correctly byCallphpinfo()function in a page, or run this:
php -m
You should be able to see a section for XDebug if successfully installed.

Configure PDT to Use XDebug


1. Configure PHP Executables in
Windows > Preference > PHP > Debug.


2. Configure PHP Server for debugging Web Pages. (You can refer to the "Add Virtual Host" of the part 1, which configures the current project tobe a Virtual Host.)


3. Configure the default debug settings to use XDebug.


4. Next we configure the debug settings for the current project. First go to
Run > Open Debug Dialog...
5. Next we create a newPHP Scriptconfiguration.


6. Then we create a configuration for debuggingPHP Web Page.


7. Now create some test php script/pages, click on the "Debug" button to start debugging.


Reference


XDebug Guide
http://www.eclipse.org/pdt/documents/XDebugGuide.pdf
How To Setup a Free PHP Debugger using Eclipse PDT + XDebug
http://robsnotebook.com/php_debugger_pdt_xdebug
Debugging PHP applications with xdebug
http://devzone.zend.com/article/2930-Debugging-PHP-applications-with-xdebug

Debugging PHP using Eclipse PDT + Zend Debugger / Xdebug
http://www.ibm.com/developerworks/edu/os-dw-os-php-eclipse-pdt-debug.html
Debugging PHP Applications with Xdebug and Eclipse PDT
http://www.64bitjungle.com/tech/debugging-php-applications-with-xdebug-and-eclipse-pdt/
Squash bugs in PHP applications with Xdebug
http://www.ibm.com/developerworks/opensource/library/os-php-xdebug/?S_TACT=105AGX44&S_CMP=TUT

分享到:
评论

相关推荐

    Eclipse 和 PDT , PHP 调试

    PHP 开发工具(PHP Development Tools,PDT)插件安装到 Eclipse Europa 后...PDT 支持两种调试工具:XDebug 和 Zend Debugger。通过本文了解如何配置 PDT 来调试 PHP 脚本,并了解在详细查看脚本时应使用哪些透视图。

    浅谈Eclipse PDT调试PHP程序

    本文主要介绍的是eclipse和pdt的安装、调试以及xdebug的配置方法,并用eclipse pdt进行断点调试PHP代码。

    PDT开发php XDebug调试手册

    PDT开发php XDebug调试手册 在eclipse for php中配置xdebug 以及调试技术详细手册

    xdebug helper 1.6.1 crx for chrome

    This extension is very useful for PHP developers that are using PHP tools with Xdebug support like PHPStorm, Eclipse with PDT, Netbeans and MacGDBp or any other Xdebug compatible profiling tool like ...

    Xdebug-helper

    此扩展对于PHP开发人员非常有用,PHP开发人员使用带有Xdebug支持的PHP工具,如PHPStorm,Eclipse with PDT,Netbeans和MacGDBp或任何其他Xdebug兼容性分析工具,如KCacheGrind,WinCacheGrind或Webgrind。

    用pdt 调试php代码

    用pdt 调试php代码 Debugging PHP using Eclipse and PDT Use XDebug or Zend Debugger to boost your productivity when fixing bugs in PHP applications

    PDT(php开发环境) v3.2.0 最新正式版

    PDT可为eclipse平台提供一个 php开发工具框架。 其包含有开发PHP所需的开发组件 ,且灵活和可扩展。它已迅速成长为最高下载的Eclipse项目之一。PDT提供了在一个PHP IDE所需的所有核心功能 基本的PHP语法高亮和着色...

    pdt:PHP开发工具项目(PDT)

    创建一个新报告: https : //github.com/eclipse/pdt/issues/new 在创建另一个bug之前,请确保搜索现有的bug。 请记住,永远欢迎捐款! Eclipse贡献者协议 在项目团队接受您的捐助之前,参与者必须以电子方式签署...

    PHP开发调试(debug)工具Eclipse Console for PHP(EC4P)

    使用eclipse(PDT PHP Development Tools Project)类型的开发工具做PHP开发或者二次开发时,非寻常郁闷的就是调试(debug)的时候不能像其他语言一样在控制台(console) 输出消息,必须得打开网页使用echo或者var_dump等...

    Xdebug helper-crx插件

    对于使用带有Xdebug支持PHP工具(如PHPStorm),带PDT的Eclipse,Netbeans和MacGDBp或任何其他Xdebug兼容分析工具(如KCacheGrind,WinCacheGrind或Webgrind)PHP开发人员,此扩展非常有用。 默认情况下,扩展程序...

    PHP调试技术手册.pdf

    3.2.2 Eclipse (PDT) + Xdebug 3.2.3 Vim + Xdebug + DBGp 4 PHP 性能调试技术 4.1 基本时间占用监测 4.2 使用 Xdebug 进行性能分析 4.2.1 安装配置: 4.3 APD(Advanced PHP Debugger) 4.3.1 安装配置 4.3.2 使用APD...

    php调试手册适合新手php开发者

    3.2.2 Eclipse (PDT) + Xdebug 3.2.3 Vim + Xdebug + DBGp 4 PHP 性能调试技术 4.1 基本时间占用监测 4.2 使用 Xdebug 进行性能分析 4.2.1 安装配置: 4.3 APD(Advanced PHP Debugger) 4.3.1 安装配置 4.3.2 使用APD...

    php环境搭建加包

    下载PHP(PDT)开发插件,http://download.eclipse.org/tools/pdt/updates/3.2-nightly。 注:你也可单独加保,解压pdt-Update-3.3.2.201410231314.zip,加载updates\3.3.2\content.jar 也可以选择 Kepler - ...

    PHP调试技术手册 1.0.rar

    3.2.2 Eclipse (PDT) Xdebug 3.2.3 Vim Xdebug DBGp 4 PHP 性能调试技术 4.1 基本时间占用监测 4.2 使用 Xdebug 进行性能分析 4.2.1 安装配置: 4.3 APD(Advanced PHP Debugger) 4.3.1 安装配置 4.3.2 使用...

    PHP中文调试技术手册(PHP-Debug-Manual-public)

    3.2.2 Eclipse (PDT) + Xdebug ................................................................................................................... 31 3.2.3 Vim + Xdebug + DBGp .............................

Global site tag (gtag.js) - Google Analytics