I want to detect and report bugs in specific cases, using the same behavior as Debug.Assert()
, but in a Release build. How can I do that?
You should be able to use Trace.Assert()
.
From MSDN:
Use the Trace.Assert method if you want to do assertions in release builds. The Debug.Assert method works only in debug builds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With