PHP Debugging Tools--xdebug Use, PHP Debugging Tools Xdebug
The following is an example of Windows platform and Aptana Studio, which describes the use of Xddebug.
1, installation Xdebug
1) Download php xdebug extension. dll file, the official website download address is https://xdebug.org/download.php, can be downloaded according to the actual PHP running system architecture, VC version and thread safety situation.
2) Copy the downloaded. dll file to the Ext directory of the PHP installation directory.
3) Open the php.ini file and add the following settings:
Xdebug.profiler_append = 0
, the setting switch of performance monitoring
xdebug.profiler_enable = 1
Xdebug.profiler_enable_trigger = 0
When the;p rofiler_enable is set to 1, the performance monitoring information is written to the directory where the file resides
Xdebug.profiler_output_dir = "D:\phpStudy\tmp\xdebug"
; Set the output path of the function call monitoring information
Xdebug.trace_output_dir = "D:\phpStudy\tmp\xdebug"
; The name of the generated performance monitoring file
Xdebug.profiler_output_name = "cache.out.%t-%s"
The three lines are for the IDE to collaborate with Xdebug
xdebug.remote_enable = 1
Xdebug.remote_handler = "DBGP"
Xdebug.remote_host = "127.0.0.1"
;. Path to the DLL file
zend_extension= "D:\phpStudy\php54n\ext\php_xdebug-2.4.0-5.4-vc9-nts.dll"
4) Restart the server
2. Using Xdebug
1) Open the Aptana,window->preferences->php->debug for the following settings:
2) window->preferences->php->php interpreters, make the following settings:
Name is the name of the parser, executable path is the Php.exe file path in the PHP installation directory, php.ini is optional. At this point, the Xdebug has been set.
3) Use Xddebug
Debug as F11 shortcut key.
Step into is stepping, and the child function enters and continues stepping; (F5)
Step over is a step in the execution, in the function when the child function is not entered into the sub-function of stepping, but the entire execution of the child function to stop, that is, the whole function as a step. (F6)
Step return is stepping into the child function, using step return can execute the remainder of the child function, and return to the previous layer function. (F7)
Now you can debug your PHP program with confidence.
http://www.bkjia.com/PHPjc/1110977.html www.bkjia.com true http://www.bkjia.com/PHPjc/1110977.html techarticle PHP Debugging Tools--xdebug Use, PHP Debugging Tools Xdebug below in the Windows platform and Aptana studio, for example, describes the use of Xddebug. 1, install xdebug 1) download php xdebug extension. dll ...