Home > Backend Development > PHP Tutorial > Xdebug configuration failed

Xdebug configuration failed

WBOY
Release: 2023-03-01 19:14:01
Original
1989 people have browsed it

Want to use xdebug plug-in. My own php version is 5.6.18, so I downloaded php_xdebug-2.2.5-5.6-vc11-x86_64.dll and placed it under the path D:AppServphp5ext, and then configured it under php.ini as follows

[Xdebug]
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM

, but when I restart apache and refresh phpinfo, xdebug cannot be found. What is going on?

Reply content:

Want to use xdebug plug-in. My own php version is 5.6.18, so I downloaded php_xdebug-2.2.5-5.6-vc11-x86_64.dll and placed it under the path D:AppServphp5ext, and then configured it under php.ini as follows

[Xdebug]
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM

, but when I restart apache and refresh phpinfo, xdebug cannot be found. What is going on?

Have you made sure to add the configuration to enable the extension?

<code>zend_extension=扩展路径/xdebug.so
</code>
Copy after login

If there is no problem with the extension, please check the php version to see if it is compatible with the current version

zend_extenstion=php_xdebug.dll is written
Go to the official website to find the corresponding version of dll. Look at the description of the php version in phpinfo. x86 x64 nts ts can be clearly distinguished

If you want to debug remotely, remember to set up a virtual server on your home router to listen on port 9000 so that you can monitor it.
Google Chrome needs to install xdebug helper, preferably 1.6. If you search for it, you don’t need to go through the wall. You can also go to 1.5 for more. csxn, Zhongx Village, many x softwares

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template