In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article analyzes "what to do if php xdebug can't read it". The content is detailed and easy to understand. Friends who are interested in "php xdebug can't read how to solve it" can follow the editor's idea to read it slowly and deeply. I hope it will be helpful to everyone after reading. Let's follow the editor to learn the knowledge of "php xdebug can't read how to solve it".
Php xdebug can not read the solution: 1, check the version of php; 2, use "php-m" to check whether xdebug is installed; 3, configure the debug statement of xebug.
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
What if php xdebug can't read it?
Resolve the problem that php xdebug cannot debug on windows
Sometimes when we use php and nginx for development, there is a situation where the extension is installed but cannot be debugged successfully. At this time, we should be patient to analyze the cause of the problem.
Step 1: check the version of php, such as x64 or x86, to see if xdebug is active, you can use phpinfo (); to see if the extension is active.
Step 2: use php-m to check again if xdebug is installed.
You may encounter xdebug must be loaded as zend extension at this time. This is because when we configure extension in php.ini, we need to change it to zend_extension, that is, zend_extension=php_xdebug.dll.
Step 3: we need to configure the debug statement for xebug, that is, we need to fill the php.ini with the following statement
[XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_port=9090 xdebug.remote_host=127.0.0.1
A very important parameter here is remote_port=9090, which is 9000 by default, but if you enter port 9000, it may cause your php not to be debugged because port 9000 will be occupied by nginx as a proxy.
How to check whether port 9000 is occupied, you can enter the command netstat-anp | findstr "9000" on the command line. If a program occupies port 9000, it will be displayed, and we can view its pid. Next, we use tasklist | findstr "2342" (2343 is the pid just found) to find out which process occupies the port. If it can be closed, it can be closed. If it cannot be closed, we need to modify our port number. For example, the author here is revised to 9090.
Conclusion: programming is a process of constantly encountering and solving problems, maybe the same code and different environments will lead to different results, and the same environment and different parameters will also lead to different operations. what we need to do is to constantly deepen our understanding, learn to check the error log, and learn to analyze the running logic of the program, so that we can overcome many difficulties and climb the peak bravely.
Here, such as debugging, we first need to understand the principle of debugging, it is essentially another process to monitor our debugging, it is first of all an extension of php, many functions of php are realized through extensions, such as many commonly used graphics libraries, encryption algorithms and so on. When the extension is activated, the php interacts with the extension, and the xdebug here is debugged by obtaining the php running information.
What is the framework of php? php framework: 1. Laravel,Laravel is a free and open source PHP application framework. 2. Phalcon,Phalcon is the fastest PHP framework. 3. Symfony,Symfony is a PHP framework for Web projects. 4. Yii,Yii is a fast, secure and professional PHP framework. CodeIgniter,CodeIgniter is a very agile open source PHP framework. 6. CakePHP,CakePHP is an old PHP framework. 7. Kohana recorder Kohana is an agile but powerful PHP framework.
About php xdebug can not read how to solve it to share here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.