Skip to content

Commit 9d89cfb

Browse files
authored
Merge pull request #1845 from Unity-Technologies/debugger-crash-workaround
Work around crash that can occur while debugging.
2 parents 71cec8c + ffe0833 commit 9d89cfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mono/mini/debugger-engine.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ remove_breakpoint (BreakpointInstance *inst)
250250
NOT_IMPLEMENTED;
251251
#endif
252252
}
253-
PRINT_DEBUG_MSG (1, "[dbg] Clear breakpoint at %s [%p].\n", mono_method_full_name (jinfo_get_method (ji), TRUE), ip);
253+
if (log_level > 0)
254+
PRINT_DEBUG_MSG (1, "[dbg] Clear breakpoint at %s [%p].\n", mono_method_full_name (jinfo_get_method (ji), TRUE), ip);
254255
}
255256
}
256257

0 commit comments

Comments
 (0)