Because XAMPP integrated environment is used, the default PHP. INI is directly used for setting. Yesterday, XAMPP was found to be unique. For example, it configures the virtual host.
The httpd-vhosts.conf is distinguished from httpd. conf so that httpd. conf can be used only
<Directory "E: \ www \ trunk \ ADMIN">
Options followsymlinks
Allowoverrideall
Order allow, deny
Allow from all
</Directory>
Configure Apache server access to some file directories, and then add the URL address corresponding to the file directory in the httpd-vhosts.conf:
<Virtualhost *: 80>
DocumentRoot "E: \ www \ trunk \ ADMIN"
ServernameDev. admin. Local
Alias/scripts "E: \ www \ trunk \ common \ javascripts"
Alias/Files "E: \ www \ trunk \ Files"
</Virtualhost>
You can useDev. admin. Local has accessed this directory.
When xdebug is installed, exceptions may occur, such as prompts.
At this time, xdebug is configured and
Xdebug can be used. However, it is important to note that XAMPP's PHP. there are many default values in the ini configuration file, which need to be adjusted by the user.
[Xdebug]
Zend_extension = "C: \ XAMPP \ PHP \ ext \ php_xdebug.dll"
; Xdebug. remote_enable
; Type: Boolean, default value: 0
; This switch controls whether xdebug shocould try to contact a debug client which is listening on
; Host and port as set with the settings xdebug. remote_host and xdebug. remote_port. If a connection
; Can not be established the script will just continue as if this setting was off.
Xdebug. remote_enable = true
; Xdebug. remote_handler
; Type: String, default value: dbgp
; Can be either 'php3' which selects the old PHP 3 style debugger output, 'gdb 'which enables the GDB
; Like debugger interface or 'dbgp '-the brand new debugger protocol. The dbgp protocol is more
; Widely supported by clients. See more information in the introduction for remote debugging.
Xdebug. remote_handler = "dbgp"
; Xdebug. remote_host
; Type: String, default value: localhost
; Selects the host where the debug client is running, you can either use a host name or an IP
; Address.
Xdebug. remote_host = "localhost"
; Xdebug. remote_log
; Type: String, default value: None
; If set to a value, it is used as filename to a file to which all remote debugger communications are
; Logged. The file is always opened in append-mode, and will therefore not be overwritten by default.
; There is no concurrency protection available.
Xdebug. remote_log = "NONE"
; Xdebug. remote_mode
; Type: String, default value: req
;
; Selects when a debug connection is initiated. This setting can have two different values:
;
; Req
Xdebug will try to connect to the debug client as soon as the script starts.
; JIT
; Xdebug will only try to connect to the debug client as soon as an error condition occurs.
; Xdebug. remote_mode = "req"
; Xdebug. remote_port
; Type: integer, default value: 9000
; The port to which xdebug tries to connect on the remote host. port 9000 is the default for both
; Client and the bundled debugclient. As your clients use this port number, it is best to leave this
; Setting unchanged.
Xdebug. remote_port = 9000
For the previously used line; for comments, you need to cancel the comments so that the server can use PHP normally. To understand the real functions of xdebug, refer to the following English article,
Just as I used to debug code, I always liked to use print_r (); exit (); so the bad thing is that if you make changes online, you can use xdebug in this way, it's easy
When external users access the service, they have their own debugging code. This problem is avoided when I use xdebug for processing.
Debugging is as follows:
If not, refer to the Firefox browser plug-in about Zend studio I mentioned last time.
Http://www.cnblogs.com/yeer/archive/2010/04/07/1706407.html