[SalesForce] System.Debug message is not showing in Developer Console’s log or Debug log

I have a Visualforce page and a controller extension class. I know my VF page is invoking the extension class but why my system.debug('blah blah blah') in my controller extension class is not showing anywhere?

I created a New Trace Flag but still I don't see the system.debug message in my debug log or developer console log when I run the code.

New Trace Flag

Update
When I open Dubug->Change Log Level.. -> I then got this error message I am not sure what it means

enter image description here

Best Answer

This is one confusing area of Debug Log: you always need to set it on a User because class/trigger debug flags don't actually generate logs.

Setting class and trigger trace flags doesn’t cause logs to be generated or saved. Class and trigger trace flags override other logging levels, including logging levels set by user trace flags, but they don’t cause logging to occur

See documentation

Related Topic