You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get-started/csharp/tutorial-console-part-2.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -335,7 +335,7 @@ The Visual Studio debugger is a powerful tool that allows you to run your code s
335
335
336
336
The red circle that appears indicates a breakpoint. You can use breakpoints to pause your app and inspect code. You can set a breakpoint on any executable line of code.
337
337
338
-

338
+

339
339
340
340
1. Build and run the app.
341
341
@@ -347,23 +347,23 @@ The Visual Studio debugger is a powerful tool that allows you to run your code s
347
347
348
348
The app suspends where you created the breakpoint, which is indicated by the yellow pointer on the left and the highlighted code. The highlighted code has not yet executed.
349
349
350
-

350
+

351
351
352
352
Now, with the app suspended you can inspect your application state.
353
353
354
354
## Debug: view variables
355
355
356
356
1. In the highlighted code, hover over variables such as `cleanNum1` and `op`. You see the current values for these variables (`8` and `d`, respectively), which appear in DataTips.
357
357
358
-

358
+

359
359
360
360
When debugging, checking to see whether variables hold the values you expect them to hold is often critical to fixing issues.
361
361
362
362
2. In the lower pane, look at the **Locals** window. (If it's closed, choose **Debug** > **Windows** > **Locals** to open it.)
363
363
364
364
In the Locals window, you see each variable that is currently in scope, along with its value and type.
365
365
366
-

366
+

367
367
368
368
3. Look at the **Autos** window.
369
369
@@ -377,13 +377,13 @@ The Visual Studio debugger is a powerful tool that allows you to run your code s
377
377
378
378
Using the Step Into command, the app executes the current statement and advances to the next executable statement (usually the next line of code). The yellow pointer on the left always indicates the current statement.
379
379
380
-

380
+

381
381
382
382
You've just stepped into the `DoOperation` method in the `Calculator` class.
383
383
384
384
1. To get a hierarchical look at your program flow, look at the **Call Stack** window. (If it's closed, choose **Debug** > **Windows** > **Call Stack**.)
385
385
386
-

386
+

387
387
388
388
This view shows the current `Calculator.DoOperation` method, indicated by the yellow pointer, and the second row shows the function that called it, from the `Main` method in *Program.cs*. The **Call Stack** window shows the order in which methods and functions are getting called. In addition, it provides access to many debugger features, such as **Go to Source Code**, from the shortcut menu.
0 commit comments