Skip to content

Commit fd04b40

Browse files
authored
Merge pull request #50544 from lootle1/MR106
Technical Review 1055004: Interactively debug .NET apps with the Visu…
2 parents af05f3d + 6d59cf4 commit fd04b40

11 files changed

+22
-23
lines changed

learn-pr/language/dotnet-debug/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: Learn how to efficiently debug your .NET app by using Visual Studio Code to fix your bugs quickly.
7-
ms.date: 10/12/2023
7+
ms.date: 05/19/2025
88
author: jongalloway
99
ms.author: jogallow
1010
ms.manager: markl

learn-pr/language/dotnet-debug/2-debugger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
author: jongalloway
88
ms.author: jogallow
99
ms.manager: markl
10-
ms.date: 10/12/2023
10+
ms.date: 05/19/2025
1111
ms.topic: unit
1212
ms.custom:
1313
- devx-track-dotnet

learn-pr/language/dotnet-debug/3-analyze-your-program-state.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
author: jongalloway
88
ms.author: jogallow
99
ms.manager: markl
10-
ms.date: 10/12/2023
10+
ms.date: 05/19/2025
1111
ms.topic: unit
1212
ms.custom:
1313
- devx-track-dotnet

learn-pr/language/dotnet-debug/4-use-visual-studio-code-debugger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
author: jongalloway
88
ms.author: jogallow
99
ms.manager: markl
10-
ms.date: 10/12/2023
10+
ms.date: 05/19/2025
1111
ms.topic: unit
1212
ms.custom:
1313
- devx-track-dotnet

learn-pr/language/dotnet-debug/5-logging-and-tracing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
author: jamesmontemagno
88
ms.author: jamont
99
ms.manager: markl
10-
ms.date: 10/12/2023
10+
ms.date: 05/19/2025
1111
ms.topic: unit
1212
ms.custom:
1313
- devx-track-dotnet

learn-pr/language/dotnet-debug/6-use-logging-and-tracing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
author: jamesmontemagno
88
ms.author: jamont
99
ms.manager: markl
10-
ms.date: 10/12/2023
10+
ms.date: 05/19/2025
1111
ms.topic: unit
1212
ms.custom:
1313
- devx-track-dotnet

learn-pr/language/dotnet-debug/7-knowledge-check.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ uid: learn.dotnet-debug.7-knowledge-check
33
title: Module assessment
44
metadata:
55
title: Module assessment
6-
description: Check what you've learned.
6+
description: Check what you learned.
77
author: jongalloway
88
ms.author: jogallow
99
ms.manager: markl
10-
ms.date: 10/12/2023
10+
ms.date: 05/19/2025
1111
ms.topic: unit
1212
ms.custom:
1313
- devx-track-dotnet
@@ -33,24 +33,24 @@ quiz:
3333
choices:
3434
- content: '`Debug.Assert(count != 0, "Count should not be 0.");`'
3535
isCorrect: false
36-
explanation: "Assert tests a condition. If it's true, nothing will happen or else the application will enter break mode. So here, if the count is 0, it will enter break mode."
36+
explanation: "Assert tests a condition. If it's true, nothing happens or else the application enters break mode. So here, if the count is 0, it enters break mode."
3737
- content: '`Debug.Assert(count == 0, "Count should not be 0.");`'
3838
isCorrect: false
39-
explanation: "Assert tests a condition. If it's true, nothing will happen or else the application will enter break mode. So here, if the count is 0, nothing will happen."
39+
explanation: "Assert tests a condition. If it's true, nothing happens or else the application enters break mode. So here, if the count is 0, nothing happens."
4040
- content: '`Debug.WriteIf(count != 0, "Count should not be 0.");`'
4141
isCorrect: false
4242
explanation: "This code prints a message when the count doesn't equal 0."
4343
- content: '`Debug.WriteIf(count == 0, "Count should not be 0.");`'
4444
isCorrect: true
45-
explanation: "This code will only print a debug message when the count is 0."
45+
explanation: "This code only prints a debug message when the count is 0."
4646
- content: "What are the top two values a debugger provides?"
4747
choices:
4848
- content: "Control of your program execution and observation of your program's state"
4949
isCorrect: true
5050
explanation: "The two main values almost every debugger provides are the ability to control program execution and to observe program state."
5151
- content: "Modifying program values and changing your program output"
5252
isCorrect: false
53-
explanation: "Changing your program's output isn't useful because it will only have effect when the application is being debugged."
53+
explanation: "Changing your program's output isn't useful because it only has an effect when the application is being debugged."
5454
- content: "Observing your program's state and modifying your program values"
5555
isCorrect: false
5656
explanation: "Observing and modifying values are important, but it's also important to be able to control the flow of program execution."
@@ -62,7 +62,7 @@ quiz:
6262
- content: "Use the Variables panel because it shows all variables that are currently in scope."
6363
isCorrect: false
6464
explanation: "While the Variables panel does display all variables currently in scope, it's not the best way to watch the value of a specific variable."
65-
- content: "Hover over the variable in the code editor to display the value."
65+
- content: "Display the value by hovering over the variable in the code editor."
6666
isCorrect: false
6767
explanation: "While hovering does display the variable's current value, it's a manual process and isn't efficient."
6868
- content: "Use the Watch panel to select specific variables or expressions to watch throughout the program's execution."

learn-pr/language/dotnet-debug/8-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
author: jongalloway
88
ms.author: jogallow
99
ms.manager: markl
10-
ms.date: 10/12/2023
10+
ms.date: 05/19/2025
1111
ms.topic: unit
1212
ms.custom:
1313
- devx-track-dotnet

learn-pr/language/dotnet-debug/includes/3-analyze-your-program-state.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ When you analyze a program defect's cause, watch your variables state to look fo
5959

6060
Your variables are shown organized by scope:
6161

62-
- **Local variables** are accessible in the current scope, usually the current function.
63-
- **Global variables** are accessible from everywhere in your program. System objects from the JavaScript runtime are also included, so don't be surprised if you see a lot of stuff in there.
64-
- **Closure variables** are accessible from the current closure, if any. A closure combines the local scope of a function with the scope from the outer function it belongs to.
62+
- **Local variables**: Accessible in the current scope, usually the current function.
63+
- **Global variables**: Accessible from everywhere in your program. System objects from the JavaScript runtime are also included, so don't be surprised if you see a lot of stuff in there.
64+
- **Closure variables**: Accessible from the current closure, if any. A closure combines the local scope of a function with the scope from the outer function it belongs to.
6565

6666
You can unfold scopes and variables by selecting the arrow. When you unfold objects, you can see all the properties defined in the object.
6767

learn-pr/language/dotnet-debug/includes/8-summary.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ In this module, you learned how to:
1111

1212
Continue learning more about .NET debugging with:
1313

14-
- [Visual Studio Code debugging](https://code.visualstudio.com/docs/editor/debugging)
14+
- [Debug code with Visual Studio Code](https://code.visualstudio.com/docs/editor/debugging)
1515
- [Working with C# in Visual Studio Code](https://code.visualstudio.com/Docs/languages/csharp)
16-
- [Tutorial: Debug a .NET Core console application using Visual Studio Code](/dotnet/core/tutorials/debugging-with-visual-studio-code)
17-
- [Tutorial: Debug a .NET Core console application using Visual Studio](/dotnet/core/tutorials/debugging-with-visual-studio)
18-
- [Tutorial: Debug a .NET Core console application using Visual Studio for Mac](/dotnet/core/tutorials/debugging-with-visual-studio-mac)
16+
- [Tutorial: Debug a .NET console application using Visual Studio Code](/dotnet/core/tutorials/debugging-with-visual-studio-code)
17+
- [Tutorial: Debug a .NET console application using Visual Studio](/dotnet/core/tutorials/debugging-with-visual-studio)

0 commit comments

Comments
 (0)