Phpstorm Configuring Xdebug Debugging PHP Code detailed tutorial

Source: Internet
Author: User

"PHP Configuration"
to install Xdebug for PHP, the method is slightly.

configuration file PHP.ini
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
; Turn on auto-tracking
xdebug.auto_trace = on
; Turn on exception tracking
xdebug.show_exception_trace = on
; Turn on remote debugging auto-Start
Xdebug.remote_autostart = on
; Turn on remote debugging
xdebug.remote_enable = 1
; collecting variables
xdebug.collect_vars = on
; collect return Values
Xdebug.collect_return = on
; collect parameters
xdebug.collect_params = on
Xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
Xdebug.profiler_enable_trigger = 0
Xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"

Xdebug.idekey=phpstorm
Xdebug.remote_handler = "DBGP"
xdebug.remote_host = "127.0.0.1"

Xdebug.remote_port = 9000



"Phpstorm Configuration"
File>settings>languages&frameworks>php>servers

Add a server.



File>settings>languages&frameworks>php>debug

See Xdebug tab, Port Fill 9000, other default.



FILE>SETTINGS>LANGUAGES&FRAMEWORKS>PHP>DEBUG>DBGP Proxy

IDE Key Fill phpstorm,host fill Localhost,port fill 82.



Browser settings (Firefox, Google use another way)

Join Http://www.jetbrains.com/phpstorm/marklets, fill in the left Phpstorm, point generate, add the following link to the favorites, convenient to call.



Run>edit configurations

To add a Web debugging server




Start monitoring

After you set a breakpoint in Phpstorm, start listening, which is the same icon as the phone. A file that uses Chrome to browse a specified breakpoint in localhost automatically enters a breakpoint and sees debugging information in Phpstorm.


Copyright NOTICE: This article is the original article of Bo-Lang's work room, without the permission of Bo Master not to reprint.

Phpstorm Configuring Xdebug Debugging PHP Code detailed tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.