Guidance:
If the above link is invalid, you can search for others by yourself. If you use different versions listed above, the configuration method may be slightly different, but this article should still have some reference value (note, version differences may cause configuration failure ).
Step 1: Install JDK.
Step 2 unzip the eclipse folder in eclipse-sdk-3.1.2-win32.zip (the following uses the features and plugins folders in D:/examples to decompress them to D:/Eclipse/features and D: /Eclipse/plugins.
Step 3 find the extension file corresponding to the PHP version you are using from dbg-2.13.1-win32.zip, for example, I am using PHP 5.1.5, so I will use the php_dbg.dll-5.1.x to rename it to php_dbg.dll, copy the file to the ext subdirectory under the PHP installation directory (for example, C:/PHP/EXT ).
Step 4: Modify the php. ini in the PHP installation directory and add or modify the following settings (if you do not understand the settings, first use the search engine to learn about the basic configuration of PHP. INI ):
Extension_dir = "./EXT"
[Debugger]
Extension = php_dbg.dll
Debugger. Enabled = on
Debugger. profiler_enabled = on
Debugger. hosts_allow = localhost 127.0.0.1
Debugger. hosts_deny = all
Debugger. Ports = 7869,100 01, 10002,100 03, 10000/16
Step 5: Modify httpd. conf in the Apache installation directory (usually in the conf subdirectory ),
Options followsymlinks
AllowOverride none
Order deny, allow
Deny from all
Satisfy all
Change
Options indexes followsymlinks
AllowOverride none
Order allow, deny
Allow from all
Step 6: Run D:/Eclipse/eclipse.exe. In the pop-up workspace launcher dialog box, enter the default path of the project to be saved (the following uses D:/workspace as an example) and confirm the path. Click window-> preferences in the menu to expand phpeclipse-> PHP external tools, and set parameters and commands to start or close Apache, MySQL, XAMPP, and other programs. This is related to the specific environment. You can check the relevant information of your Apache, MySQL, or XAMPP version. For example, the startup parameter of Apache 2.2.3 I use is-w-n "apache2.2"-K start-c "DocumentRoot {0 }". Here is a special description of the role of-c "DocumentRoot {0}", which means to set the current project directory to the root directory of the HTTP server, where {0} represents the current project directory.
Step 7: Click Run-> debug...in the menu, click new, click environment, enter the position of php.exe (such as C:/PHP/php.exe) in interpreter, and select remote debug in remote debug.
This article is transferred from
Http://zhengnairen.spaces.live.com/blog/cns! 877233d608cfd071! 277. Entry