Is there any way to Query the Debug Mode Information? I am looking to get information about all the users for whom debug mode has been enabled via apex?

if there is any other way than apex, i would like to know that as well apart from the Standard UI route.

1 Answer 1


There is a field on the User object called UserPreferencesUserDebugModePref that stores this information that you can leverage in a query in Apex.

When true, the Lightning Component framework executes in debug mode for the user. Corresponds to the Debug Mode checkbox on the Advanced User Details page of personal settings in the user interface.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .