Apache Version: 2.2
PHP version: 5.2.11
Eclipse Download Address: Http://downloads.zend.com/pdt/all-in-one/zend-eclipse-php-galileo-SR1-win32-x86.zip
Run Eclipse.exe after decompression
Choose a work space
I chose E:/phpworkspace.
To insert one step at a time
Open the Apache configuration file httpd.conf
Find "DocumentRoot"
Modifying the value of DocumentRoot
DocumentRoot "E:/phpworkspace"
Build PHP Project
Named "debugphp"
Create a PHP File: "debug.php"
Write code as follows:
<HTML> <BODY>
Add a breakpoint at line 103th
See the debugger plug-in with this eclipse version
window--preferences--php-php Executables
The default is the first one, no tube
This step is just to let people take a look
You can skip.
Ready to run the deployment
Click the down small arrow on the Debug button
Select "Debug Configuration ..."
In the pop-up dialog box, make the following settings
1. Double-click "PHP Script" to create a new PHP script "New_configuration"
2. Modify the Name property "Zend Debugger"
PHP Debugger:zend Debugger
PHP executable: Default on the line, you can also choose the default settings here
PHP File: Click "Browse" to select "debug.php"
Check the "breat at a" option
The above setup is complete
Click the "Debug" button
Will pop up the view Jump dialog box that looks like it
I don't know how to debug a program.
Run down
You can see that the corresponding view has a corresponding value appear
Run to the end you can see