Skip to content

Commit 439a03e

Browse files
committed
acrolinx edits
1 parent 0ecc89c commit 439a03e

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

docs/debugger/quickstart-debug-with-cplusplus.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Visual Studio debugger provides many powerful features to help you debug you
1818

1919
1. Open Visual Studio and create a project.
2020

21-
If the Start window is not already open, select **File > Start Window**. In the Start window, select **Create a new project**. In the search box, type "Empty project", and then select the C++ **Empty Project** template.
21+
If the Start window isn't already open, select **File > Start Window**. In the Start window, select **Create a new project**. In the search box, type "Empty project", and then select the C++ **Empty Project** template.
2222

2323
If you don't see the project template, open the **Visual Studio Installer**. Choose the **Desktop development with C++ workload**, then choose **Modify**.
2424

@@ -35,7 +35,7 @@ The Visual Studio debugger provides many powerful features to help you debug you
3535
}
3636
```
3737

38-
with this code (do not remove `#include "stdafx.h"`):
38+
with this code (don't remove `#include "stdafx.h"`):
3939

4040
```cpp
4141
#include <list>
@@ -66,7 +66,7 @@ The Visual Studio debugger provides many powerful features to help you debug you
6666

6767
## Set a breakpoint
6868

69-
A *breakpoint* is a marker that indicates where Visual Studio should suspend your running code so you can take a look at the values of variables, or the behavior of memory, or whether or not a branch of code is getting run. It is the most basic feature in debugging.
69+
A *breakpoint* is a marker that indicates where Visual Studio should suspend your running code so you can take a look at the values of variables, or the behavior of memory, or whether or not a branch of code is getting run. It's the most basic feature in debugging.
7070

7171
1. To set the breakpoint, click in the gutter to the left of the `doWork` function call (or select the line of code and press **F9**).
7272

@@ -76,7 +76,7 @@ A *breakpoint* is a marker that indicates where Visual Studio should suspend you
7676

7777
![Hit a breakpoint](../debugger/media/dbg-qs-hit-breakpoint.png "Hit a breakpoint")
7878

79-
The debugger pauses where you set the breakpoint. The statement where the debugger and app execution is paused is indicated by the yellow arrow. The line with the `doWork` function call has not yet executed.
79+
The debugger pauses where you set the breakpoint. The statement where the debugger and app execution is paused is indicated by the yellow arrow. The line with the `doWork` function call hasn't yet executed.
8080

8181
> [!TIP]
8282
> If you have a breakpoint in a loop or recursion, or if you have many breakpoints that you frequently step through, use a [conditional breakpoint](../debugger/using-breakpoints.md#BKMK_Specify_a_breakpoint_condition_using_a_code_expression) to make sure that your code is suspended ONLY when specific conditions are met. A conditional breakpoint saves time and can also make it easier to debug issues that are hard to reproduce.

docs/debugger/walkthrough-writing-a-visualizer-in-visual-basic.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ms.subservice: debug-diagnostics
2121
> [!IMPORTANT]
2222
> Starting with Visual Studio 2022 version 17.9, visualizers can now be written in .NET 6.0+ that run out-of-process using the new VisualStudio.Extensibility model. We encourage visualizer authors to reference the new documentation at [Create Visual Studio debugger visualizers](../extensibility/visualstudio.extensibility/debugger-visualizer/debugger-visualizers.md) unless they want to support older versions of Visual Studio or want to ship their custom visualizers as part of a library DLL.
2323
24-
This walkthrough shows how to write a simple visualizer by using Visual Basic. The visualizer you will create in this walkthrough displays the contents of a string using a Windows Forms message box. This simple string visualizer is a basic example to show how you can create visualizers for other data types more applicable to your projects.
24+
This walkthrough shows how to write a simple visualizer by using Visual Basic. The visualizer you'll create in this walkthrough displays the contents of a string using a Windows Forms message box. This simple string visualizer is a basic example to show how you can create visualizers for other data types more applicable to your projects.
2525

2626
> [!NOTE]
2727
> The dialog boxes and menu commands you see might differ from those described in Help, depending on your active settings or edition. To change your settings, go to the **Tools** menu and choose **Import and Export** . For more information, see [Reset settings](../ide/personalizing-the-visual-studio-ide.md#reset-all-settings).
@@ -70,7 +70,7 @@ Visualizer code must be placed in a DLL that will be read by the debugger. The f
7070
```
7171

7272
## Add the Debugger-side Code
73-
Now, you are ready to create the debugger-side code. This is the code that runs within the debugger to display the information that you want to visualize. First, you have to change the declaration of the `DebuggerSide` object so that it inherits from the base class `DialogDebuggerVisualizer`.
73+
Now, you're ready to create the debugger-side code. This is the code that runs within the debugger to display the information that you want to visualize. First, you have to change the declaration of the `DebuggerSide` object so that it inherits from the base class `DialogDebuggerVisualizer`.
7474

7575
### To inherit from DialogDebuggerVisualizer
7676

@@ -102,7 +102,7 @@ Visualizer code must be placed in a DLL that will be read by the debugger. The f
102102
End Sub
103103
```
104104

105-
The `Show` method contains the code that actually creates the visualizer dialog box, or other user interface, and displays the information that has been passed to the visualizer from the debugger. You must add the code that creates the dialog box and displays the information. In this walkthrough, you will do this using a Windows Forms message box. First, you must add a reference and `Imports` statement for <xref:System.Windows.Forms>.
105+
The `Show` method contains the code that actually creates the visualizer dialog box, or other user interface, and displays the information that has been passed to the visualizer from the debugger. You must add the code that creates the dialog box and displays the information. In this walkthrough, you'll do this using a Windows Forms message box. First, you must add a reference and `Imports` statement for <xref:System.Windows.Forms>.
106106

107107
### To add System.Windows.Forms
108108

@@ -121,7 +121,7 @@ Visualizer code must be placed in a DLL that will be read by the debugger. The f
121121
```
122122

123123
## Create Your Visualizer's User Interface
124-
Now you will add some code to create and show the user interface for your visualizer. Because this is your first visualizer, you will keep the user interface simple and use a Message Box.
124+
Now you'll add some code to create and show the user interface for your visualizer. Because this is your first visualizer, you'll keep the user interface simple and use a Message Box.
125125

126126
### To show the visualizer output in a dialog box
127127

@@ -131,12 +131,12 @@ Visualizer code must be placed in a DLL that will be read by the debugger. The f
131131
MessageBox.Show(objectProvider.GetObject().ToString())
132132
```
133133

134-
This example code does not include error handling. You should include error handling in a real visualizer, or any other kind of application.
134+
This example code doesn't include error handling. You should include error handling in a real visualizer, or any other kind of application.
135135

136136
2. On the **Build** menu, click **Build MyFirstVisualizer**. The project should build successfully. Correct any build errors before continuing.
137137

138138
## Add the Necessary Attribute
139-
That is the end of the debugger-side code. There is one more step, however: the attribute that tells the debuggee side which collection of classes comprises the visualizer.
139+
That is the end of the debugger-side code. There's one more step, however: the attribute that tells the debuggee side which collection of classes comprises the visualizer.
140140

141141
### To add the type to visualize for the debuggee-side code
142142

@@ -151,7 +151,7 @@ In the debugger-side code, you specify the type to visualize (the object source)
151151
2. On the **Build** menu, click **Build MyFirstVisualizer**. The project should build successfully. Correct any build errors before continuing.
152152

153153
## Create a Test Harness
154-
At this point, your first visualizer is finished. If you have followed the steps correctly, you can build the visualizer and install it into Visual Studio. Before you install a visualizer into Visual Studio, however, you should test it to make sure that it runs correctly. You will now create a test harness to run the visualizer without installing it into Visual Studio.
154+
At this point, your first visualizer is finished. If you have followed the steps correctly, you can build the visualizer and install it into Visual Studio. Before you install a visualizer into Visual Studio, however, you should test it to make sure that it runs correctly. you'll now create a test harness to run the visualizer without installing it into Visual Studio.
155155

156156
### To add a test method to show the visualizer
157157

@@ -193,7 +193,7 @@ In the debugger-side code, you specify the type to visualize (the object source)
193193
6. Click **OK**.
194194

195195
## Finish Your Test Harness and Test Your Visualizer
196-
Now, you will add the code to finish the test harness.
196+
Now, you'll add the code to finish the test harness.
197197

198198
### To add code to MyTestConsole
199199

@@ -216,7 +216,7 @@ In the debugger-side code, you specify the type to visualize (the object source)
216216
DebuggerSide.TestShowVisualizer(myString)
217217
```
218218

219-
Now you are ready to test your first visualizer.
219+
Now you're ready to test your first visualizer.
220220

221221
### To test the visualizer
222222

0 commit comments

Comments
 (0)