1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/base/nsIDebug2.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* vim: set shiftwidth=4 tabstop=8 autoindent cindent expandtab: */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +/* interface to expose information about calls to NS_DebugBreak */ 1.10 + 1.11 +#include "nsIDebug.idl" 1.12 + 1.13 +[scriptable, uuid(6cb17fec-cdf7-4f7c-b267-37a0acaa9cf1)] 1.14 +interface nsIDebug2 : nsIDebug 1.15 +{ 1.16 + /** 1.17 + * Whether XPCOM was compiled with DEBUG defined. This often 1.18 + * correlates to whether other code (e.g., Firefox, XULRunner) was 1.19 + * compiled with DEBUG defined. 1.20 + */ 1.21 + readonly attribute boolean isDebugBuild; 1.22 + 1.23 + /** 1.24 + * The number of assertions since process start. 1.25 + */ 1.26 + readonly attribute long assertionCount; 1.27 + 1.28 + /** 1.29 + * Whether a debugger is currently attached. 1.30 + * Supports Windows + Mac 1.31 + */ 1.32 + readonly attribute bool isDebuggerAttached; 1.33 +};