Version: 2023.2
LanguageEnglish
  • C#

Debug.developerConsoleEnabled

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static bool developerConsoleEnabled;

Description

Allows you to enable or disable the developer console.

The developer console is a window that can appear when a development build of your project is running. It is similar to the Console window in the Editor, but appears at runtime. Enabling this property does not immediately make the developer console appear, instead it appears when the first error or assertion is logged. This property is enabled by default in development builds.

Disabling this property when the developer console is open clears the contents of the developer console and hides it. You can check whether the developer console is currently visible, and hide or show it without clearing its contents, by using Debug.developerConsoleVisible.