Phpstorm Configuring Xdebug Debugging PHP Code detailed tutorial
"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.