
C# Tip: Use Debug-Assert to break the debugging flow if a condition fails
Sometimes, while debugging, you want to check if the state of your code is still valid, or, at least, it corresponds to some expectations.
A simple approach to this problem is to add an if statement with the condition you need to check and place a du...
Read: https://code4it.hashnode.dev/c-tip-use-debug-assert-to-break-the-debugging-flow-if-a-condition-fails
Sometimes, while debugging, you want to check if the state of your code is still valid, or, at least, it corresponds to some expectations.
A simple approach to this problem is to add an if statement with the condition you need to check and place a du...
Read: https://code4it.hashnode.dev/c-tip-use-debug-assert-to-break-the-debugging-flow-if-a-condition-fails