简体   繁体   中英

How to detect FILE name and LINE of last php execution point statement?

I see white screen.

Somewhere my php script finished its execution.

There are no php errors or warnings. There is a lot of framework files to go through var_dump to detect place, where the script die.

Likely, some of Framework file calls die() or exit.

How can I detect last php statement? (FILE and LINE)

The statement for PHP which finished its execution without going though endless files and endless var_dump ?

Try adding this to the top of your PHP file:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

More information on what this does can be found here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM