Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the Xdebug tool under PHP development tool ZendStudio

Shulou Source: shulou.com Published: 2022-06-03 07:40:44 09月25日 Update

This article mainly explains "how to use the PHP development tool ZendStudio under the Xdebug tool", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to use the PHP development tool ZendStudio under the Xdebug tool"!

From learning the basic knowledge of PHP to using ZendSudio tools to develop for more than half a year, in this process, learning is intermittent, and there are many problems encountered, so learning PHP is really not a worry. The most worrying thing is the debugging process.

To learn programming, you must know how to debug, otherwise it will be like a blind person touching an elephant, unable to figure out the operating mechanism. Perhaps it is because of my own non-subject class, or lack of understanding, or the complexity of setting up the xdebug tool itself, which makes me full of horror step by step in the debugging process of Zendstudio.

I use XAMPP's integrated development platform environment. There is already a default debugging tool for Xdebug, so you only need to change the configuration yourself.

My development model is to build the XAMPP environment on the virtual machine, and then the IDE environment on the local machine. This leads to the problem of remote debugging. However, Xdebug has already provided this kind of solution, and it is very powerful.

At first, I was in a hurry and did not fully understand the use and configuration information of the Xdebug tool. Hurry to get the ducks on the shelves, but something went wrong in a few days. The starting session stopped at 57%, and then the breakpoint did not take effect, and it ran away at once.

Through the observation of port 9000, it turns out that the client will start port 9000 to listen to and receive server-side debugging information, which means that the server can telnet 9000 to the client, but the client cannot connect to the server port 9000.

The final solution: re-build the xampp environment, reconfigure it, and then enable debugging information and everything will be fine.

Thank you for your reading, the above is "how to use PHP development tools ZendStudio Xdebug tools" content, after the study of this article, I believe you on how to use PHP development tools ZendStudio Xdebug tools this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Tools development learning development tools environment problems information customers clients servers ports processes services configuration worry content solutions knowledge operation complexity Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi MariaDB Shulou Technology Linux