michael@0: /* vim: set shiftwidth=4 tabstop=8 autoindent cindent expandtab: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* interface to expose information about calls to NS_DebugBreak */ michael@0: michael@0: #include "nsIDebug.idl" michael@0: michael@0: [scriptable, uuid(6cb17fec-cdf7-4f7c-b267-37a0acaa9cf1)] michael@0: interface nsIDebug2 : nsIDebug michael@0: { michael@0: /** michael@0: * Whether XPCOM was compiled with DEBUG defined. This often michael@0: * correlates to whether other code (e.g., Firefox, XULRunner) was michael@0: * compiled with DEBUG defined. michael@0: */ michael@0: readonly attribute boolean isDebugBuild; michael@0: michael@0: /** michael@0: * The number of assertions since process start. michael@0: */ michael@0: readonly attribute long assertionCount; michael@0: michael@0: /** michael@0: * Whether a debugger is currently attached. michael@0: * Supports Windows + Mac michael@0: */ michael@0: readonly attribute bool isDebuggerAttached; michael@0: };