From 526e514bff09fb498034af61b5ac1bfa63a6e985 Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Mon, 2 Nov 2009 18:53:44 -0500 Subject: [PATCH] assert and massert now trigger breakpoint() --- util/assert_util.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/assert_util.cpp b/util/assert_util.cpp index e0e649ccb51..6fb4dcdcf1c 100644 --- a/util/assert_util.cpp +++ b/util/assert_util.cpp @@ -43,6 +43,7 @@ namespace mongo { temp << "assertion " << file << ":" << line; AssertionException e; e.msg = temp.str(); + breakpoint(); throw e; } @@ -66,6 +67,7 @@ namespace mongo { log() << "Assertion: " << msg << '\n'; lastAssert[2].set(msg, getDbContext().c_str(), "", 0); raiseError(msg && *msg ? msg : "massert failure"); + breakpoint(); throw MsgAssertionException(msg); }