Книга: C# 2008 Programmer

Stepping through the Code

Stepping through the Code

With the application stopped at the breakpoint, you have a choice of what to do:

Step Into — Press F11 (see Figure 2-62). Stepping into the code means that if the breakpoint statement is a function call, execution is transferred to the first statement in the function and you can step through the function one statement at a time.


Figure 2-62

Step Over — Press F10. Stepping over the code means that if the breakpoint statement is a function call, the entire function is executed and control is transferred to the next statement after the function.

Step Out — Press Shift+F11 to step out of the code (Step Out). If the statement at the breakpoint is part of a function, execution is resumed until the function exits. The control is transferred to the returning point in the calling function.

Step Into and Step Over are basically the same, except when it comes to executing functions. 

While you are at a breakpoint stepping through the code (using either F10 or F11), you can also examine the values of variables by hovering the mouse over the object you want to examine. Figure 2-63 shows value of i when the mouse is over i.


Figure 2-63 

Оглавление книги


Генерация: 1.261. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз