mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1667015 - Output full path of source code files with NS_DebugBreak. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D91240
This commit is contained in:
parent
ce8b2c945f
commit
58611a371f
@ -229,13 +229,13 @@ void LogError(const nsLiteralCString& aModule, const nsACString& aExpr,
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_DebugBreak(
|
||||
NS_DEBUG_WARNING, nsAutoCString(aModule + " failure"_ns).get(),
|
||||
(extraInfosString.IsEmpty() ? nsPromiseFlatCString(aExpr)
|
||||
: static_cast<const nsCString&>(nsAutoCString(
|
||||
aExpr + extraInfosString)))
|
||||
.get(),
|
||||
nsPromiseFlatCString(GetLeafName(aSourceFile)).get(), aSourceLine);
|
||||
NS_DebugBreak(NS_DEBUG_WARNING, nsAutoCString(aModule + " failure"_ns).get(),
|
||||
(extraInfosString.IsEmpty()
|
||||
? nsPromiseFlatCString(aExpr)
|
||||
: static_cast<const nsCString&>(
|
||||
nsAutoCString(aExpr + extraInfosString)))
|
||||
.get(),
|
||||
nsPromiseFlatCString(aSourceFile).get(), aSourceLine);
|
||||
#endif
|
||||
|
||||
#if defined(EARLY_BETA_OR_EARLIER) || defined(DEBUG)
|
||||
|
Loading…
Reference in New Issue
Block a user