A new feature recently advertised and then little known and used are the conditional breakpoint. When
happen to have to debug only under certain conditions, such as inside a loop, or only when there is a particular condition, you can set a conditional breackpoint, which interrupts executing code only all'avverarsi a particular condition. breackpoint Enter the desired line, right-click on the red circle that appears and select from the drop-down "condition
" this window will appear.
is possible to insert a boolean condition, for example, the loop counter is 100, or by typing an expression, and selecting has changed the
breackpoint triggered only if the value has changed. breackpoint Other options:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrtQr-2umXlDUjHGHKlHX2H-ZhShFaAIF4hnNMaWLn4AdOa5ZFyeGyhFruICdiqQS5BjX7p3HngTYu7R7Urn7KEoMPIk-pAWjAElCSR37P5ZsQDv5HQVPFfecRoiqIt0n4QN0Q856_WWOU/s400/artbp.jpg)
Hit Count: breackpoint activates only the nth step
Filter: breackpoint applies only to the particular condizioni, es: nome della macchina, del thread, id del thread,ecc
When hit : quando l'esecuzione passa dal breackpoint รจ possibile eseguire un logging dell'operazione o eseguire una macro di visual studio, decidendo se lasciar proseguire o bloccare l'esecuzione sull'istruzione corrente