Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Latest commit

 

History

History

step_through_code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
id title brief article
19FDB601-FEF7-48A3-2011-DE8414D1DC71
Step Through Code
This recipe shows how to step into, over, and out of functions.

Recipe

  1. Put your IDE into Debug mode, and set a breakpoint at the point in the code where you want to start stepping from:

  1. On the top left, you will see four gray icons with arrows and dots:

In Visual Studio, the controls look the same except the arrows are blue:

You have four options here:

  • Play will begin running the code.
  • Step over and Step into execute the next line of code. If the next line of code is a function call, Step over will execute the entire function and stop at the next line of code outside it. Step into will stop at the first line of code inside the function.
  • Use Step out if you are inside a function, and want to move on to the next function.
  1. The following screenshot illustrates stopping at the first breakpoint, and stepping into the next function: