summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/lmdb
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdb/src/lmdb')
-rw-r--r--plugins/Dbx_mdb/src/lmdb/mdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Dbx_mdb/src/lmdb/mdb.c b/plugins/Dbx_mdb/src/lmdb/mdb.c
index 6d5e75d2c3..57f03fc6db 100644
--- a/plugins/Dbx_mdb/src/lmdb/mdb.c
+++ b/plugins/Dbx_mdb/src/lmdb/mdb.c
@@ -1404,6 +1404,8 @@ mdb_assert_fail(MDB_env *env, const char *expr_txt,
if (env->me_assert_func)
env->me_assert_func(env, buf);
fprintf(stderr, "%s\n", buf);
+ if (IsDebuggerPresent())
+ DebugBreak();
_beginthread(dbpanic, 0, 0);
Sleep(INFINITE);
}