how to check if debug mode is enabled from presenter function

mrcosgrove
Member | 11
+
0
-

Is there a way to retrieve the status of debug mode from the presenter?

I can see the information in the bootstrap file, but can't seem to see how to access it outside the bootstrap file

Last edited by mrcosgrove (2022-11-21 14:54)

Pavel Kravčík
Member | 1196
+
0
-

There is %debugMode%.

//config
- AppModel(%debugMode%)

class AppModel
{
	pf __construct(private bool $debugMode)
}
David Grudl
Nette Core | 8229
+
0
-

Try this way https://blog.nette.org/…-to-services with %debugMode%