Phpstrom not like other development tools Eclipse,visual Studio itself can debug breakpoints, we need to configure something to achieve . When you're pretty sure which step is out of the question you can debug with output,
but in the case of not knowing, TMD always echoes, Print_r,var_dump? Everyone is very busy, wasting time and energy, with the xdebug, we can step-by-step debugging tracking program running, the benefit is not a star two points.
First download phpunit,http://www.phpunit.cn/put in PHP folder according to your PHP version is placed
Open Phpstrom file, language and framework->php
Add PHP Version
After the application is determined, open the PHPUnit under PHP
Select the third one, add the phpunit you just placed, and then apply. Open the above debug click on the second DBGP Proxy
IDE Key Fill Phpstrom host is the project you want to debug the domain name port default Application OK
Select Debug/Run Configuration Edit structure
Add a phpunit, select your project's directory
Create a new PHP Web application
Create a new servers host project domain name, debugger select Xdebug application to determine
Choose Google Chrome
Then open php.ini Modify [XDebug] to add the project domain name
Xdebug.profiler_append = 0
xdebug.profiler_enable = 1
Xdebug.profiler_enable_trigger = 0
Xdebug.profiler_output_dir = "D:\phpStudy\tmp\xdebug"
Xdebug.trace_output_dir = "D:\phpStudy\tmp\xdebug"
Xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
Xdebug.remote_handler = "DBGP"
Xdebug.remote_host = "Www.endblog.com"
zend_extension= "D:\phpStudy\php53n\ext\xdebug.dll"
xdebug.idekey= "Phpstorm"
Restart the phpstudy, please.
The final step is to download the Xdebug helper Chrome version and pull it into the Google browser to install the extension. and open, and open phpstrom that phone.
The browser refreshes, OK, so we can debug the breakpoint.
Phpstrom + xdebug Breakpoint debugging