Home > Backend Development > PHP Tutorial > phpstorm+xdebug

phpstorm+xdebug

WBOY
Release: 2016-07-29 08:51:08
Original
1154 people have browsed it

[xdebug]

zend_extension=”C:ApacheAppServphp5.4.20extphp_xdebug-2.3.3-5.4-vc9.dll”

xdebug.default_enable=1

xdebug.auto_trace = 1

xdebug.show_ex ception_trace = 1

xdebug.collect_vars = 1

xdebug.collect_return = 1

xdebug.collect_params = 1

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_name = “cachegrind. out.%t-%s”

xdebug.remote_autostart = 1

xdebug.remote_enable = 1

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "localhost"

xdebug.remote_port=9002

xdebug.idekey=”PHPSTORM”

In the configuration of xdebug in php.ini, the default port is 9000. It is best to change it to something else. I changed it to 9002. The idekey needs to be set by yourself. It will be needed for phpstorm configuration later.

Open phpstorm, ctrl+alt+s to open settings, first modify the php version
phpstorm+xdebug

Debug port is changed to 9002
phpstorm+xdebug

Servers added:
Just write your name
host: The project domain name is generally localhost
port: port number
debugger: Default Xdebug
phpstorm+xdebug

Modify DBGp Proxy
IDE key: Fill in the key configured above, here is PHPSTORM
host:localhost (local ip)
port:9002 (xdebug configuration port)
phpstorm+xdebug

Click here, Edit Configurations
phpstorm+xdebug

Add debug:
Just write your name
server: Select the server you just configured
Strat url: The loaded file path
phpstorm+xdebug

After adding it normally, the gray green arrow and bug can be clicked. I use chrome. First go to the app store to install the JetBrains IDE Support plug-in, then put a breakpoint and click the phone icon. Click on the bug, and the browser should automatically open to load the project path. When you return to the ide, you can see the debug information, as shown in the picture
phpstorm+xdebug

Note: If this error occurs Waiting for incoming connection with ide key '15930'
, it should be that xdebug is not set up properly.
Import dll files
Correct: zend_extension="C:ApacheAppServphp5.4.20extphp_xdebug-2.3.3-5.4-vc9.dll"
Wrong: extension="C:ApacheAppServphp5.4.20extphp_xdebug-2.3.3-5.4-vc9.dll", otherwise it will

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above has introduced phpstorm+xdebug, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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