From c8837a298c149ee74115df484caf1d8da8d114b6 Mon Sep 17 00:00:00 2001 From: David Pine Date: Wed, 30 Nov 2022 10:50:53 -0600 Subject: [PATCH 1/2] Add alert about keyboard shortcuts --- docs/core/tutorials/debugging-with-visual-studio.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/core/tutorials/debugging-with-visual-studio.md b/docs/core/tutorials/debugging-with-visual-studio.md index 0297bb1aee70f..00c15f1848df6 100644 --- a/docs/core/tutorials/debugging-with-visual-studio.md +++ b/docs/core/tutorials/debugging-with-visual-studio.md @@ -1,7 +1,7 @@ --- title: Debug a .NET console application using Visual Studio description: Learn how to debug a .NET console app using Visual Studio. -ms.date: 11/11/2022 +ms.date: 11/30/2022 zone_pivot_groups: dotnet-version dev_langs: - "csharp" @@ -15,6 +15,9 @@ recommendations: false This tutorial introduces the debugging tools available in Visual Studio. +> [!IMPORTANT] +> All of the keyboard shortcuts are based on the defaults from Visual Studio. Your keyboard shortcuts may vary, for more information see [Keyboard shortcuts in Visual Studio](/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio). + ## Prerequisites - This tutorial works with the console app that you create in [Create a .NET console application using Visual Studio](with-visual-studio.md). @@ -86,7 +89,7 @@ The program displays the string that the user enters. What happens if the user d 1. For the **Conditional Expression**, enter the following code in the field that shows example code that tests if `x` is 5. ```csharp - String.IsNullOrEmpty(name) + string.IsNullOrEmpty(name) ``` ```vb From e869baefd9bad4f3d71b57c00b38cabbbb7507ee Mon Sep 17 00:00:00 2001 From: David Pine Date: Wed, 30 Nov 2022 10:53:48 -0600 Subject: [PATCH 2/2] Added clarifying statements --- docs/core/tutorials/debugging-with-visual-studio.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/tutorials/debugging-with-visual-studio.md b/docs/core/tutorials/debugging-with-visual-studio.md index 00c15f1848df6..a7717b395fd08 100644 --- a/docs/core/tutorials/debugging-with-visual-studio.md +++ b/docs/core/tutorials/debugging-with-visual-studio.md @@ -311,7 +311,7 @@ The program displays the string that the user enters. What happens if the user d ## Step through a program -Visual Studio also allows you to step line by line through a program and monitor its execution. Ordinarily, you'd set a breakpoint and follow program flow through a small part of your program code. Since this program is small, you can step through the entire program. +Visual Studio also allows you to step line by line through a program and monitor its execution. Ordinarily, you'd set a breakpoint and follow program flow through a small part of your program code. Since this program is small, you can step through the entire program. While not currently debugging, and focus is on Visual Studio: 1. Choose **Debug** > **Step Into**. Another way to debug one statement at a time is by pressing F11.