How does php debug trace variables at run time?

how can the front-end iOS, back-end php, track all variables at the same time when running in the background?
the foreground sends the data to the background, how can the background see the changes of each variable when executing several functions, and where can I see the error message when the php file is running?
just started to do the front and back end at the same time, but I still don"t quite understand it. Solve the problem

.
May.04,2021

Xdebug

you can debug remotely by installing Xdebug on the server, but the difficulty is that remote debugging of PHP is very difficult to install, and several attempts are unsuccessful. This is due to the fact that there are 100 + ways in which you can not adjust the security policy of the server provider, and of course there is a more violent way.

var_dump

after all, the php code does not need to be compiled and executed, so you can modify it directly to see the results. In this way, you can turn on the automatic deployment function of the development tool and connect to the remote server through FTP or SFTP. First of all, in order to reproduce the request made by your phone, you need a package grabbing tool that supports replay, such as Fiddler , then step by step var _ dump, in the editor and then press the R key to replay the request through the Fiddler select request until the result is called up.

PHP Debug Bar

PHP Debug Bar

if it is a Laravel project, there is also

Laravel-debugbar

[extension recommendation] Laravel-debugbar development and debugging tools
The

php Xdebug extension shows everything.
if you look at the error log, you can set the error level. Write the error in the log. It was clear all the way. You can also break the log and write it into the file.


socketlog learn about https://www.kancloud.cn/yangw.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30562-2b252.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30562-2b252.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?