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 |
Previous article:jq ajax transfer data
Next article:PHP garbage collection mechanism----copy-on-write and reference counting
Statement of this Website
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
Latest Articles by Author
Latest Issues
There is no output in the parent window
document.onclick = function(){ window.opener.document.write('I am the output of the child ...
From 2024-04-18 23:52:34
0
1
1284
PX automatic conversion to REM error
<style>html { font-size: calc(100vw / 3.75); }...
From 2024-04-16 09:34:16
0
0
4687
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|