Bug 75198. Support XPCOM_DEBUG_BREAK=warn on Win32. r=brendan, sr=scc

This commit is contained in:
waterson@netscape.com
2001-04-28 02:10:18 +00:00
parent 8247040065
commit f1937ec345
2 changed files with 8 additions and 0 deletions

View File

@@ -208,6 +208,10 @@ NS_COM void nsDebug::Assertion(const char* aStr, const char* aExpr,
fflush(stdout);
#if defined(_WIN32)
char* assertBehavior = getenv("XPCOM_DEBUG_BREAK");
if (assertBehavior && PL_strcmp(assertBehavior, "warn") == 0)
return;
if(!InDebugger())
{
DWORD code = IDRETRY;