Home > Article > Backend Development > debugging using breakpoints in zend studio
1, Download Xdebug
1 |
# Download address |
2 |
# http://xdebug.org/download.php |
3 |
4 |
# Find the Xdebug download corresponding to the php version you installed |
5 |
# For the Windows version of php, you can view the printed information of the phpinfo() function, search for "PHP Extension Build", and see which version of PHP you have, which is VC, |
2, Installation
1 |
# Installation instructions page |
2 |
# http://xdebug.org/docs/install |
3 |
4 |
# For Windows version, rename the downloaded dll file to php_xdebug.dll after the download is complete |
5 |
# Copy it to the PHP extension directory (for example: D:Program FilesEasyPHP-5.3.2ippext) |
3, modify php.ini
01 |
# Add a paragraph at the end of php.ini and restart Web-Server after modification |
02 |
[Xdebug] |
03 |
zend_extension= "D:/Program Files/EasyPHP-5.3.2i/php/ext/php_xdebug.dll"
|
04 |
05 |
xdebug.profiler_enable=on |
06 |
xdebug.trace_output_dir= "E:/xdebug" ;xdebug’s data file directory
|
07
|
xdebug.profiler_output_dir= "E:/xdebug" ;xdebug’s data file directory
|
08
|
xdebug.max_nesting_level = 10000 ; If it is set too small, if the function calls itself recursively too many times, an error of exceeding the maximum nesting number will be reported
|
09
|
10
|
xdebug.remote_enable= true
|
xdebug.remote_host=127.0.0.1 ; The IP address of zend studio that allows connection |
|
xdebug.remote_port=9000 ;Reverse connection to the port used by zend studio |
|
xdebug.remote_handler=dbgp ; Application layer communication protocol for zend studio remote debugging |
|
Window -> Preferences -> PHP -> Debug |
|
# Set "PHP Debugger" in "Default Settings" on the left to "XDebug" |
|
view source print?
<?php |
Statement: The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn Previous article:jq ajax transfer dataNext article:jq ajax transfer data Related articlesSee more |