Skip to content

Commit 7427c98

Browse files
TylerMSFTTylerMSFT
authored andcommitted
edit alt-text
1 parent edcc0fc commit 7427c98

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/build/configure-cmake-debugging-sessions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Configure CMake debugging sessions in Visual Studio"
33
description: "Describes how to use Visual Studio to configure CMake debugger settings."
4-
ms.date: 12/16/2020
4+
ms.date: 10/26/2023
55
helpviewer_keywords: ["CMake debugging"]
66
---
77
# Configure CMake debugging sessions
@@ -16,26 +16,26 @@ Native CMake support is available in Visual Studio 2017 and later. To see the do
1616

1717
All executable CMake targets are shown in the **Startup Item** dropdown in the toolbar. Select one to start a debugging session and launch the debugger.
1818

19-
:::image type="complex" source="media/new-dropdowns.png" alt-text="Screenshot of the CMake startup items.":::
20-
There is a play button dropdown to select the current debug target. It shows your debug targets. In this example, the HelloWorld.exe debug target is available.
19+
:::image type="complex" source="media/new-dropdowns.png" alt-text="Screenshot of the CMake startup items dropdown.":::
20+
The dropdown provides a list of debug targets to choose from. The selected item appears as a play button followed by the name of the selected debug target to run. In this example, the selected debug target is Hello World .exe.
2121
:::image-end:::
2222

2323
You can also start a debug session from Solution Explorer. First, switch to **CMake Targets View** in the **Solution Explorer** window.
2424

25-
:::image type="complex" source="media/switch-to-targets-view.png" alt-text="Screenshot of the CMake Targets View menu":::
26-
The solution explorer is shown. A right-click on an item in the Folder View has opened a menu. On that menu, the Switch to Targets View item is highlighted.
25+
:::image type="complex" source="media/switch-to-targets-view.png" alt-text="Screenshot of the CMake Targets View menu.":::
26+
The solution explorer is shown. A right-click on an item in the Folder View has opened a menu that shows options such as Open, Open with, Compare with, and so on. The Switch to Targets View menu item is highlighted.
2727
:::image-end:::
2828

2929
Then, right-click on an executable and select **Debug**. This command automatically starts debugging the selected target based on your active configuration.
3030

3131
:::image type="complex" source="media/debug-targets-view.png" alt-text="Screenshot of the CMake Targets View debug option menu.":::
32-
When you right-click on a target in the CMake Targets view, there is an option to debug a chosen target. The Debug option is highlighted.
32+
A right-click on a target in the CMake Targets view has opened a menu with options such as Set as Startup item, Build, Clean All, and so on. The Debug menu option is highlighted.
3333
:::image-end:::
3434

3535
Starting in Visual Studio 2022 Version 17.6, you can also start a debugging session on your CMakeLists.txt file. To do so, just set a breakpoint in your CMakeLists.txt file and run **Configure Project with CMake Debugger** from the **Project** dropdown.
3636

3737
:::image type="complex" source="media/cmake-debugger-entry.png" alt-text="Screenshot of the CMake Debugger dropdown.":::
38-
The Project dropdown is shown. The option to Configure Project with CMake debugger is highlighted.
38+
The Project dropdown is shown. The menu option to Configure Project with CMake debugger is highlighted.
3939
:::image-end:::
4040

4141
## Customize debugger settings

0 commit comments

Comments
 (0)