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.

Menu