Skip to content

Commit 0e9c739

Browse files
authored
Update configure-cmake-debugging-sessions.md
Updated to have the latest screenshots of the experience for debugging and added the CMake Debugging information as well
1 parent bae8e00 commit 0e9c739

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ 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-
![Screenshot of the CMake startup item dropdown.](media/cmake-startup-item-dropdown.png "CMake startup item dropdown")
19+
![Screenshot of the CMake startup item dropdown.](media/new-dropdowns.png "CMake startup item dropdown")
2020

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

23-
![Screenshot of the CMake targets view command.](media/cmake-targets-view.png "CMake Targets View menu item")
23+
![Screenshot of the CMake targets view command.](media/switch-to-targets-view.png "CMake Targets View menu item")
2424

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

27+
Starting in Visual Studio 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
28+
29+
![Screenshot of CMake Debugger dropdown.](media/cmake-debugger-entry.png "CMake Debugger dropdown")
30+
2731
## Customize debugger settings
2832

2933
You can customize the debugger settings for any executable CMake target in your project. They're found in a configuration file called *launch.vs.json*, located in a *`.vs`* folder in your project root. A launch configuration file is useful in most debugging scenarios, because you can configure and save your debugging setup details. There are three entry points to this file:

0 commit comments

Comments
 (0)