How does thinkphp5 turn on debug mode only in local code or in a method?

how does thinkphp5 turn on debug mode only in local code or in a method?

I set the great effect in the program as follows
Config::set ("app_debug",true);

Nov.08,2021
Menu