Home > Backend Development > PHP Tutorial > Parsing phpstorm + xdebug remote breakpoint debugging_PHP tutorial

Parsing phpstorm + xdebug remote breakpoint debugging_PHP tutorial

WBOY
Release: 2016-07-21 15:05:40
Original
737 people have browsed it

XDEBUG configuration:
1. Install xdebug omitted. There is a lot of information online.
Focus on the configuration of php.ini
[XDebug]

Copy Code The code is as follows:

zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
xdebug.default_enable = On
xdebug. collect_params = On
xdebug.remote_connect_back = On //If this is turned on, the following xdebug.remote_host parameters will be ignored.
xdebug.remote_host = 192.168.59.104 //Note that here is the client’s ip
xdebug.remote_port = 9900 The end port
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_log = "/var/www/xdebug/xdebug. log"
xdebug.remote_req = req
xdebug.auto_trace = Off
xdebug.remote_autostart = On
xdebug.show_exception_trace = 0
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
xdebug.var_display_max_depth = 15
xdebug.show_local_vars = 1
xdebug.dump_undefined = 1
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = /var/ www/xdebug

PHPSTORM configuration:
1.file->settings->php|Debug right side. The xdebug piece. Set Debug port:9900 (What is set here is the port of the local machine through which the debug information spit out by xdebug is transmitted.)
2.file->settings->php|Servers on the right. Host: The domain name or IP and port of your web server. The following use path mapping means that the directory of your project corresponds to what directory on the server? It must be set here! Otherwise, an error will occur because the file cannot be found, causing debugging to terminate.
3.Run->Edit Configurations-> Add a debugging point for PHP WEB Application. On the right side: server selects the server you created above. starturl sets your entry file.
At this point, the configuration is complete!
For such a request, you can register a debugging client!
http://www.aihuxi.com/****.php?XDEBUG_SESSION_START=19192
Click on the little bug icon to start debugging!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327681.htmlTechArticleXDEBUG configuration: 1. Install xdebug. Omitted. There is a lot of information online. Focus on writing the configuration of php.ini [XDebug] Copy the code The code is as follows: zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"...
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template