Zend studio for eclipse + Xdebug Development Environment

Source: Internet
Author: User
Tags php debug
Document directory
  • PHP Version 5.2.5

Transferred from zendchina, you can view the original article. The reason for this reprinting is that the various information on the internet is incomplete and this article is comprehensive. I also encountered many difficulties on this issue and finally got inspiration from this article. Hope that friends who encounter the same problem can solve the problem as soon as possible. At the same time, it is declared that zend debugging cannot be used in windows for network transmission is wrong. It is difficult to use and wrong, but it cannot be used. I tried my best and hoped that my friends would not take any detours.

Download xdebug, see the version, it is very important, here using php_xdebug-2.0.5-5.2.dll, there are;

It must be loaded in Zend mode. See the configuration in php. ini. Configure D: \ EasyPHP \ PHP \ php. ini and comment out optimization first ";"

As follows:

; [Zend]
; Zend_optimizer.optimization_level = 1023
; Zend_extension_ts = "../Zend/ZendExtensionManager. dll"
; Zend_extension_manager.optimizer_ts = "../Zend/Optimizer-3.3.0"
; Zend_extension_ts = "D:/EasyPHP/PHP/ext/ZendDebugger. dll"
; Zend_debugger.allow_hosts = 127.0.0.1/32
; Zend_debugger.expose_remotely = always
; Extension = php_xdebug-2.0.5-5.2.dll
[Xdebug]
Zend_extension_ts = D:/EasyPHP/PHP/ext/php_xdebug-2.0.5-5.2.dll
Xdebug. profiler_enable = on
Xdebug. trace_output_dir = "D:/EasyPHP/xdebug"
Xdebug. profiler_output_dir = "D:/EasyPHP/xdebug"
Xdebug. remote_enable = On
Xdebug. remote_host = "localhost"
Xdebug. remote_port = 19000
Xdebug. remote_handler = "dbgp"

Modify the port to 19000 to prevent the port from being occupied. Modify the web browse, as shown in figure


If you do not use FF, the following error will be reported:

Waiting for XDebug seession... won't move, select IE as normal

Then configure as follows:

In addition:

Zend Studio for Eclipse:

-6.0.0 \ plugins \ com. zend. php_6.0.0.v20080107 \ plugin_customization.ini

Set org. eclipse. ui. workbench/UIActivities.com. zend. php. debug. ui. XDebugActivity to false.
Change to true. After saving the file, restart Zend Studio 7 and select Xdebug for debugging in php debug.



Select the web page for debugger

In addition, the use of WinCacheGrind reference: http://hi.baidu.com/lostdays/blog/item/c2ef51a920c62ff81f17a2f4.html

My phpinfo information is as follows to facilitate the comparison of versions due to problems:

PHP Version 5.2.5

System
Windows nt wv 5.1 build 2600

Build Date
Nov 8 2007 23:18:08

Configure Command
Cscript/nologo configure. js "-- enable-snapshot-build" "-- with-gd = shared"

Server API
Apache 2.0 Handler

Virtual Directory Support
Enabled

Configuration File (php. ini) Path
C: \ WINDOWS

Loaded Configuration File
D: \ EasyPHP \ PHP \ php. ini

PHP API
20041225

PHP Extension
20060613

Zend Extension
220060519

Debug Build
No

Thread Safety
Enabled

Zend Memory Manager
Enabled

IPv6 Support
Enabled

Registered PHP Streams
Php, file, data, http, ftp, compress. zlib, compress.bzip2, zip

Registered Stream Socket Transports
Tcp, udp

Registered Stream Filters
Convert. iconv. *, string. rot13, string. toupper, string. tolower, string. strip_tags, convert. *, consumed, zlib. *, bzip2 .*

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.