Ситуация следующая:есть цикл с 24 итерациями с вложенным циклом на столько же. Программа крашится примерно на 20-й(хотя точно не уверен). Вопрос:Можно ли средствами Дельфи7 перейти к какой-то определенной итерации, дабы не прокручиватьих по очередеи в отладчике?Если да, то как это сделать?
1.Щелкаю правой кнопкой мыши на breakpoint который располагается на одно йстроке что и цикл
2. Выбираю пункт Breakpoint properties
А дальше что делать?
Specifies a conditional expression that is evaluated each time the breakpoint is encountered. Program execution stops when the expression evaluates to true. Enter a conditional expression to stop program execution.
You can enter any valid language expression. However, all symbols in the expression must be accessible from the breakpoint's location.
Pass count
Stops program execution at a certain line number after a specified number of passes. Enter the number of passes.
The debugger increments the pass count each time the line containing the breakpoint is encountered. When the pass count equals the specified number, the debugger pauses program execution. For example, if the pass count is set to 3, you will see 0 of 3, 1 of 3, 2 of 3, then 3 of 3 in the pass count. Program execution stops at 3 of 3.
Because the debugger increments the count with each pass, you can use them to determine which iteration of a loop fails. Set the pass count to the maximum loop count and run your program. When the program fails, you can calculate the number of loop iterations by examining the number of passes that occurred.
When you use pass counts with conditions, program execution pauses the nth time that the conditional expression is true. the debugger decrements the pass count only when the conditional expression is true.