The debug.debuggerEnabled
property determines whether debugging is enabled for the script context. Debugging may be enabled or disabled whether or not a debugger is attached.
Syntax
var dbgEnabled = Debug.debuggerEnabled;
Requirements
Supported in the following document modes: Internet Explorer 10 standards and Internet Explorer 11 standards. Also supported in Store apps (Windows 8 and Windows Phone 8.1).
Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards.