How to stop when a condition in if statement is satisfied, when debugging <p>How to stop when a condition in if statement is satisfied, when debugging? For example:</p> <pre><code>if (!check()) { int a = 0; } </code></pre> <p>The int a = 0; is dummy code and then I put a breakpoint there. If I put a breakpoint inside an empty if loop the debugger won't stop there, it only stops at instructions it can execute. Even if you do int a; just a declaration it won't stop.</p> <p>Can I do this in other way rather than writing dummy code?</p> <p>Thanks</p>