Stepping through a call in VS Code
A delivery charge looks wrong, so you pause the program in the VS Code debugger. In Listing 1, Breakpoint A is on the call to delivery_fee, and Breakpoint B is on print(total). Both breakpoints are enabled. Execution is paused at Breakpoint A, before that line runs, so fee does not have a value yet.
You want to inspect distance_km inside delivery_fee, return to order_total, finish the assignment to fee, inspect it on the following line, and then run to Breakpoint B. Which sequence of VS Code debugger controls does that?
- Step Into, Step Out, Step Over, Continue
- Step Into, Step Out, Continue
- Step Over, Step Out, Step Over, Continue
- Step Into, Continue, Step Over, Continue