Stepping through code

In Visual Studio 2017, navigate to Debug | Step Into, or in both Visual Studio 2017 and Visual Studio Code, click on the Step Into button in the toolbar, or press F11.

The yellow highlight steps forward one line, as shown in the following screenshot:

Go to Debug | Step Over or press F10. The yellow highlight steps forward one line. At the moment, you can see that there is no difference between using Step Into or Step Over.

Press F10 again so that the yellow highlight is on the line that calls the Add method:

The difference ...

Get C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.