zend studio uses breakpoint debugging, zendstudio
1, download Xdebug
2, Installation
3, modify php.ini
03 |
zend_extension= "D:/Program Files/EasyPHP-5.3.2i/php/ext/php_xdebug.dll"
|
05 |
xdebug.profiler_enable=on |
06 |
xdebug.trace_output_dir= "E:/xdebug" ;xdebug 的数据文件目录
|
07 |
xdebug.profiler_output_dir= "E:/xdebug" ;xdebug 的数据文件目录
|
08 |
xdebug.max_nesting_level = 10000 ;如果设得太小,函数中有递归调用自身次数太多时会报超过最大嵌套数错 |
10 |
xdebug.remote_enable= true ;Xdebug允许远程IDE连接
|
11 |
xdebug.remote_host=127.0.0.1 ;允许连接的zend studio的IP地址 |
12 |
xdebug.remote_port=9000 ;反向连接zend studio使用的端口 |
13 |
xdebug.remote_handler=dbgp ;用于zend studio远程调试的应用层通信协议 |
4, Modify Zend Studio settings
1 |
Window -> Preferences -> PHP -> Debug |
5, create a new test.php file in the project
view source
print?
2 |
for ( $i = 0; $i < 10; $i ) { |
6, Create a new Debug command
http://www.bkjia.com/PHPjc/990889.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/990889.htmlTechArticlezend studio Use breakpoint debugging, zendstudio 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...
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