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 solve the problem of incomplete debug display in php

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

Share

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

Most people do not understand the knowledge points of this article "php's debug shows not all how to solve", so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "php debug display incomplete how to solve" article.

Solutions to php's incomplete debug display: 1, find the php.ini file; 2, add "xdebug.var_display_max_children=128..." to the xdebug node; 3, restart the PHP service.

This article operating environment: windows7 system, PHP7.1 version, DELL G3 computer

What if the debug display of php is incomplete?

Partial chrome and firefox browsers are displayed when php debugging

In the php development environment, after the xdebug module is installed, the output of var_dump () will be easier to view, but by default, the output of var_dump () will change:

Too many array elements are no longer displayed, string variables will only display the first N characters, and deeper array elements will be displayed as ellipses.

This will cause some inconvenience, we modify the configuration file to set these.

In the xdebug node in php.ini, add the following

Xdebug.var_display_max_children=128xdebug.var_display_max_data=512xdebug.var_display_max_depth=5

The meaning can be understood by the name.

Then restart the PHP service.

The above is about the content of this article on "how to solve the incomplete debug display of php". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

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