Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/core/tutorials/debugging-with-visual-studio.md
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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).
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -308,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 <kbd>F11</kbd>.

Expand Down