Skip to content

Commit

Permalink
got rid of "System.Diagnostics.Debugger.Break()" call, which crashes …
Browse files Browse the repository at this point in the history
…IL2CPP application. (#46)

Co-authored-by: Dmitry Garshin <[email protected]>
  • Loading branch information
dmitry-garshin and Dmitry Garshin authored Feb 12, 2024
1 parent db29b12 commit 23bef74
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ static public void gBreakToDebugger() {
System.Diagnostics.Debugger.Break();
}

static public bool DebugBreakOnDevAssert = true;

[Conditional("DEBUG")]
static public void gDevAssert(bool bValue, string message = "gDevAssert") {
if (bValue == false) {
if (DebugBreakOnDevAssert)
System.Diagnostics.Debugger.Break();
else
throw new Exception(message);
throw new Exception(message);
}
}

Expand Down

0 comments on commit 23bef74

Please sign in to comment.