tp6.0 enables local debugging mode

When developing locally, the most important thing for us is to turn on the debugging mode, to reduce errors after going online, and to facilitate the problems we encounter during the development process.

.example.envfile, you can directly rename .envthe file.

.envThe definition format of the file is as follows:

// 设置开启调试模式
APP_DEBUG =  true
// 其它的环境变量设置
// ...

 

 

Once the debugging mode is turned off, no specific error message will be prompted after an error occurs. If you still want to see the specific error message, you can app.phpset it in the file as follows:

// 显示错误信息
'show_error_msg'        =>  true,    

 

 

Supongo que te gusta

Origin blog.csdn.net/qq_34861341/article/details/126490080
Recomendado
Clasificación