Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure phpstorm+xdebug

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to configure phpstorm+xdebug for you. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

1. Prompt XDEBUG NOT LOADED AS ZEND EXTENSION information in phpinfo

Use zend_extension_ts when configuring Xdebug in previous versions of PHP5.3

For versions above PHP5.3, use zend_extension.

The reason for this is:

The reason for the emergence of XDEBUG NOT LOADED AS ZEND EXTENSION is that when we installed Xdebug, we copied the DLL file of Xdebug to the php\ ext directory, so it was easy to load Xdebug as an PHP extension library, adding the

Extension=php_xdebug-2.1.0-5.3-vc6.dll

This is the wrong way to install Xdebug and must be loaded as zend.

My php is 5.2.5, so it's zend_extension_ts= "d:/wamp/php/php_xdebug.dll".

2. Xdebug configuration:

Xdebug.profiler_enable=onxdebug.auto_trace = onxdebug.collect_params = 1xdebug.collect_return = onxdebug.show_local_vars = onxdebug.idekey= "PHPSTORM" xdebug.remote_autostart = onxdebug.remote_mode=reqxdebug.trace_output_dir= "d:/wamp/tmp/" xdebug.profiler_output_dir= "d:/wamp/tmp" xdebug.remote_enable=1xdebug.remote_host=localhostxdebug.remote_port=9000xdebug.remote_handler=dbgp

3. Phpstorm configuration:

When configuring dbgp proxy, idekey,host needless to say, port must be 80, but 9000 or 9001 always doesn't work.

4. Download xdebug

Xdebug version: "Windows modules for PHP 5.1.2-5.1.7, Windows modules for PHP 5.2.1-5.2.7"

This is the end of the article on "how to configure phpstorm+xdebug". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report