first, the configuration before the description:
1, Phpstudy integrated xdebug expansion, so do not download xdebug alone.
2, open Xdebug Extension: Other options menu > PHP extension > Xdebug
Second, the configuration steps:
1, phpstudy current version:
2, modify the php.ini file, note the Phpstudy directory:
; zj_20170102 annotation off the original configuration; [XDebug]; xdebug.profiler_output_dir= "D:\myworkVIP\phpstudy\tmp\xdebug"; xdebug.trace_output_dir= "D:\myworkVIP\ Phpstudy\tmp\xdebug "; zend_extension=" D:\myworkVIP\phpstudy\php\php-5.5.38\ext\php_xdebug.dll "; zend_extension=" D:\myworkVIP\phpstudybak\php\php-5.5.38\ext\php_xdebug.dll "; zj_20170102 custom XDebug [XDebug] zend_extension= "D:\myworkVIP\phpstudy\php\php-5.5.38\ext\php_xdebug.dll"; Whether to allow Xdebug trace function calls, trace information stored as files, the default value is 0 xdebug.auto_trace=1, whether to allow Xdebug trace function parameters, the default value is 0 Xdebug.collect_params=1; Whether to allow the Xdebug trace function to return the value, the default value is 0 xdebug.collect_return=1, the function call trace information output file directory, the default value is/tmp Xdebug.trace_output_dir = "D:\myworkVIP\ Phpstudy\tmp\xdebug "; The location of the profiling file, the default value is/tmp Xdebug.profiler_output_dir =" D:\myworkVIP\phpstudy\tmp\xdebug ";
Open the Xdebug Performance Analyzer, which is stored as a file, and this configuration cannot be configured with the Ini_set () function, the default value is 0 xdebug.profiler_enable = 1; the naming rule for the profiling file, the default value is cachegrind.out.%p Xdebug.profiler_output_name = "cachegrind.out.%t.%p" xdebug.remote_enable = 1; application-layer communication protocol for Zend Studio remote debugging Xdebug.remote _handler = "DBGP" Xdebug.idekey =Phpstorm xdebug.remote_host = "127.0.0.1" Xdebug.remote_port = 9000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
3, choose PHP Version:
4, Debug port:
5, Idekey:
6. Configuration:
7, view the configuration:
Third, debugging:
1, open debugging:
Turn from: http://blog.csdn.net/zz_buddha/article/details/54096000