Zend Studio with Xdebug, xdebug-help (Chrome plugin) debugging PHP programs
First, raw materials:
Zend Studio (I'm using 11.0.2)
Xdebug (version to be consistent with the PHP environment of the server)
Xdebug-helper (chrome plugin, chrome plugin extension is sealed, you can download offline version and install it online)
Second, installation:
2.1, Installation Xdebug
1), locate the Xdebug component corresponding to the PHP environment and place it in the Ext directory
2), modify the php.ini file.
Modification Example:
Note: The specific PHP environment, plug-in location, etc. to be based on their own real environment to configure
|
[Xdebug]; Xdebug configuration
zend_extension= "D:/program files/php/php-5.4.30-win32- Vc9-x86/ext/php_xdebug-2.2.3-5.4-vc9.dll "; load xdebug
Xdebug.profiler_enable=on
xdebug.trace_output_dir=" D :/program Files/php/php-5.4.30-win32-vc9-x86/ext/xdebug-log "; xdebug data file directory
xdebug.profiler_output_dir=" D:/ Program Files/php/php-5.4.30-win32-vc9-x86/ext/xdebug-log "; xdebug data file directory
Xdebug.auto_trace = on; turn on automatic tracking
Xdebug.show_exception_trace = on; Turn on exception tracking
Xdebug.remote_autostart = OFF; turn on remote debugging auto-start
xdebug.remote_enable = on; Turn on remote debugging
XDEBUG.REMOTE_HANDLER=DBGP; application-layer communication protocol for Zend Studio remote debugging
Xdebug.remote_host=localhost; Allow connected Zend The IP address of studio
xdebug.remote_port=9000; the port used by the reverse connection Zend Studio
Xdebug.collect_vars = on; collect variables
xdebug.collect_ return = ON; collect returns value
Xdebug.collect_params = on; collect parameters
Xdebugbug.max_nesting_level = 10000; If set too small, A function that has recursive calls to itself too many times will report more than the maximum number of nested errors |
3), visit phpinfo () to see if the installation is complete!
2.2, Installation Xdebug-helper
Note: Because the Chrome extension is blocked, this article only says how to install the offline version of the
1), download the offline version of Xdebug-helper
Website: http://download.csdn.net/detail/yunmeng12/8169251
2), open the Chrome extension interface directly,
3), then drag and drop the offline components to that location to install!
4), install the configuration, point to eclipse can!
5), open debug mode
2.3. Configure Zend Studio
Open breakpoints in Zend Studio!
The breakpoint can be easily debugged!
Three, Summary:
At this point has fully completed the preparation of PHP debugging, can be arbitrary debugging debug, is not very cool! If you do not understand, you can leave a message to communicate with the author!
Zend Studio with Xdebug, xdebug-help (Chrome plugin) debugging PHP programs