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/sanitizers/asan.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,14 @@ AddressSanitizer is integrated with the Visual Studio project system, the CMake
39
39
Starting in Visual Studio 2019 version 16.9, Microsoft's AddressSanitizer technology enables integration with the Visual Studio IDE. The functionality can optionally create a crash dump file when the sanitizer finds a bug at runtime. If you set the `ASAN_SAVE_DUMPS=MyFileName.dmp` environment variable before you run your program, a crash dump file is created with extra metadata for efficient [post-mortem debugging](#crash-dumps) of precisely diagnosed bugs. These dump files make extended use of AddressSanitizer easier for:
40
40
41
41
- Local machine testing
42
-
- On-premise distributed testing
42
+
- On-premises distributed testing
43
43
- Cloud-based workflows for testing
44
44
45
45
### Install AddressSanitizer
46
46
47
47
C++ workloads in the Visual Studio Installer install the AddressSanitizer libraries and IDE integration by default. However, if you're upgrading from an older version of Visual Studio 2019, use the Installer to enable ASan support after the upgrade. You can open the installer from the Visual Studio main menu via **Tools** > **Get Tools and Features...** Choose **Modify** on your existing Visual Studio installation from the Visual Studio Installer to get to the following screen.
48
48
49
-
:::image type="content" source="media/asan-installer-option.png" alt-text="Screenshot of the Visual Studio Installer. The C++ AddressSanitizer component, under the Optional section, is highlighted":::
49
+
:::image type="content" source="media/asan-installer-option.png" alt-text="Screenshot of the Visual Studio Installer. The C++ AddressSanitizer component, under the Optional section, is highlighted.":::
50
50
51
51
> [!NOTE]
52
52
> If you run Visual Studio on the new update but haven't installed ASan, you'll get an error when you run your code:
@@ -146,9 +146,9 @@ To build and run the debugger, press **F5**. An **Exception Thrown** window appe
146
146
147
147
To enable AddressSanitizer for a [CMake project created to target Windows](../build/cmake-projects-in-visual-studio.md), follow these steps:
148
148
149
-
1. Open the **Configurations**dropdown in the toolbar at the top of the IDE and select **Manage Configurations**.
149
+
1. Open the **Configurations**drop-down in the toolbar at the top of the IDE and select **Manage Configurations**.
150
150
151
-
:::image type="content" source="media/asan-cmake-configuration-dropdown.png" alt-text="Screenshot of the CMake configuration dropdown. It displays options like x64 Debug, x64 Release, and so on. At the bottom of the list, Manage Configurations... is highlighted.":::
151
+
:::image type="content" source="media/asan-cmake-configuration-drop-down.png" alt-text="Screenshot of the CMake configuration drop-down. It displays options like x64 Debug, x64 Release, and so on. At the bottom of the list, Manage Configurations... is highlighted.":::
152
152
153
153
That opens the CMake Project Settings editor, which reflects the contents of your project's `CMakeSettings.json` file.
154
154
@@ -218,7 +218,7 @@ To enable AddressSanitizer for a [CMake project created to target Windows](../bu
218
218
219
219
This screenshot captures the error from the CMake build.
220
220
221
-
:::image type="content" source="media/asan-cmake-error-f5.png" alt-text="Screenshot of an exception that says: Address Sanitizer Error: Global buffer overflow. In the background, address sanitizer output is visible in command window":::
221
+
:::image type="content" source="media/asan-cmake-error-f5.png" alt-text="Screenshot of an exception that says: Address Sanitizer Error: Global buffer overflow. In the background, address sanitizer output is visible in command window.":::
0 commit comments