Skip to content

Commit 0519d8b

Browse files
authored
Merge pull request MicrosoftDocs#5087 from MicrosoftDocs/main
10/27/2023 AM Publish
2 parents eb7eaa9 + 04fc0ac commit 0519d8b

File tree

4 files changed

+13
-140
lines changed

4 files changed

+13
-140
lines changed

docs/_breadcrumb/toc.yml

Lines changed: 3 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,3 @@
1-
items:
2-
- name: Docs
3-
tocHref: /
4-
topicHref: /
5-
items:
6-
- name: Microsoft C++, C, and Assembler
7-
tocHref: /cpp/
8-
topicHref: /cpp/index
9-
items:
10-
- name: Compiler intrinsics and assembly language
11-
tocHref: /cpp/intrinsics/
12-
topicHref: /cpp/intrinsics/index
13-
items:
14-
- name: Compiler intrinsics
15-
tocHref: /cpp/intrinsics/
16-
topicHref: /cpp/intrinsics/compiler-intrinsics
17-
- name: ARM and ARM64 assembler
18-
tocHref: /cpp/assembler/arm/
19-
topicHref: /cpp/assembler/arm/arm-assembler-reference
20-
- name: C/C++ x86 inline assembler
21-
tocHref: /cpp/assembler/inline/
22-
topicHref: /cpp/assembler/inline/inline-assembler
23-
- name: x86 and x64 assembler
24-
tocHref: /cpp/assembler/masm/
25-
topicHref: /cpp/assembler/masm/microsoft-macro-assembler-reference
26-
- name: ATL
27-
tocHref: /cpp/atl/
28-
topicHref: /cpp/atl/atl-com-desktop-components
29-
- name: ATL/MFC shared classes
30-
tocHref: /cpp/atl-mfc-shared/
31-
topicHref: /cpp/atl-mfc-shared/atl-mfc-shared-classes
32-
items:
33-
- name: ATL/MFC reference
34-
tocHref: /cpp/atl-mfc-shared/reference/
35-
topicHref: /cpp/atl-mfc-shared/reference/classes-shared-by-mfc-and-atl
36-
- name: Build C/C++ projects
37-
tocHref: /cpp/build/
38-
topicHref: /cpp/build/building-c-cpp-programs
39-
items:
40-
- name: Build reference
41-
tocHref: /cpp/build/reference/
42-
topicHref: /cpp/build/reference/c-cpp-building-reference
43-
- name: Build insights
44-
tocHref: /cpp/build-insights/
45-
topicHref: /cpp/build-insights/index
46-
- name: C language
47-
tocHref: /cpp/c-language/
48-
topicHref: /cpp/c-language/index
49-
- name: C runtime library
50-
tocHref: /cpp/c-runtime-library/
51-
topicHref: /cpp/c-runtime-library/c-run-time-library-reference
52-
items:
53-
- name: UCRT reference
54-
tocHref: /cpp/c-runtime-library/reference/
55-
topicHref: /cpp/c-runtime-library/reference/crt-alphabetical-function-reference
56-
- name: Cloud and web
57-
tocHref: /cpp/cloud/
58-
topicHref: /cpp/cloud/cloud-and-web-programming-in-visual-cpp
59-
- name: Code analysis
60-
tocHref: /cpp/code-quality/
61-
topicHref: /cpp/code-quality/index
62-
- name: Code sanitizers
63-
tocHref: /cpp/sanitizers/
64-
topicHref: /cpp/sanitizers/index
65-
- name: C++ language
66-
tocHref: /cpp/cpp/
67-
topicHref: /cpp/cpp/index
68-
- name: C++/CX
69-
tocHref: /cpp/cppcx/
70-
topicHref: /cpp/cppcx/visual-c-language-reference-c-cx
71-
- name: Cross-platform mobile development
72-
tocHref: /cpp/cross-platform/
73-
topicHref: /cpp/cross-platform/index
74-
- name: Data access
75-
tocHref: /cpp/data/
76-
topicHref: /cpp/data/data-access-in-cpp
77-
items:
78-
- name: OLEDB
79-
tocHref: /cpp/data/oledb/
80-
topicHref: /cpp/data/oledb/ole-db-programming
81-
- name: ODBC
82-
tocHref: /cpp/data/odbc/
83-
topicHref: /cpp/data/odbc/open-database-connectivity-odbc
84-
- name: C++/CLI for .NET
85-
tocHref: /cpp/dotnet/
86-
topicHref: /cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp
87-
- name: Errors and warnings
88-
tocHref: /cpp/error-messages/
89-
topicHref: /cpp/error-messages/compiler-errors-1/c-cpp-build-errors
90-
- name: Edit, navigate, and refactor code
91-
tocHref: /cpp/ide/
92-
topicHref: /cpp/ide/read-and-understand-code-cpp
93-
- name: Linux
94-
tocHref: /cpp/linux/
95-
topicHref: /cpp/linux/index
96-
- name: Linux
97-
tocHref: /cpp/build/configure-cmake-debugging-sessions
98-
topicHref: /cpp/linux/index
99-
- name: MFC
100-
tocHref: /cpp/mfc/
101-
topicHref: /cpp/mfc/mfc-desktop-applications
102-
items:
103-
- name: MFC reference
104-
tocHref: /cpp/mfc/reference/
105-
topicHref: /cpp/mfc/reference/mfc-classes
106-
- name: Microsoft C/C++
107-
tocHref: /cpp/overview/
108-
topicHref: /cpp/overview/visual-cpp-in-visual-studio
109-
- name: Parallel programming
110-
tocHref: /cpp/parallel/
111-
topicHref: /cpp/parallel/parallel-programming-in-visual-cpp
112-
- name: Porting and upgrading
113-
tocHref: /cpp/porting/
114-
topicHref: /cpp/porting/visual-cpp-porting-and-upgrading-guide
115-
- name: C/C++ preprocessor
116-
tocHref: /cpp/preprocessor/
117-
topicHref: /cpp/preprocessor/c-cpp-preprocessor-reference
118-
- name: Security
119-
tocHref: /cpp/security/
120-
topicHref: /cpp/security/security-best-practices-for-cpp
121-
- name: C++ standard library
122-
tocHref: /cpp/standard-library/
123-
topicHref: /cpp/standard-library/cpp-standard-library-reference
124-
- name: Text and strings
125-
tocHref: /cpp/text/
126-
topicHref: /cpp/text/text-and-strings-in-visual-cpp
127-
- name: Windows
128-
tocHref: /cpp/windows/
129-
topicHref: /cpp/windows/overview-of-windows-programming-in-cpp
1+
- name: C++, C, and Assembler
2+
tocHref: /cpp/
3+
topicHref: /cpp/index

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

docs/build/reference/debug-generate-debug-info.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: /DEBUG (Generate debug info)"
33
title: "/DEBUG (Generate Debug Info)"
4-
ms.date: 12/05/2022
4+
ms.date: 10/26/2023
55
f1_keywords: ["VC.Project.VCLinkerTool.GenerateDebugInformation", "/debug"]
66
helpviewer_keywords: ["DEBUG linker option", "/DEBUG linker option", "-DEBUG linker option", "PDB files", "debugging [C++], debug information files", "generate debug info linker option", "pdb files, generating debug info", ".pdb files, generating debug info", "debugging [C++], linker option", "program databases [C++]"]
77
ms.assetid: 1af389ae-3f8b-4d76-a087-1cdf861e9103
@@ -20,15 +20,15 @@ The **`/DEBUG`** option puts the debugging information from linked object and li
2020

2121
An executable (an EXE or DLL file) created for debugging contains the name and path of the corresponding PDB. The debugger reads the embedded name and uses the PDB when you debug the program. The linker uses the base name of the program and the extension *`.pdb`* to name the program database, and embeds the path where it was created. To override this default, set the [`/PDB`](pdb-use-program-database.md) option and specify a different file name.
2222

23-
The **`/DEBUG:FASTLINK`** option is available in Visual Studio 2017 and later. This option generates a limited PDB that indexes into the debug information in the object files and libraries used to build the executable instead of making a full copy. You can only use this limited PDB to debug from the computer where the binary and its libraries were built. If you deploy the binary elsewhere, you may debug it remotely from the build computer, but not directly on the test computer. In Visual Studio 2017, this option can sometimes greatly improve link times compared with **`/DEBUG:FULL`**. In Visual Studio 2019 and later, **`/DEBUG:FULL`** is faster than in earlier versions. Now, **`/DEBUG:FASTLINK`** isn't always faster than **`/DEBUG:FULL`**, and it's rarely more than twice as fast.
23+
The **`/DEBUG:FASTLINK`** option is available in Visual Studio 2017 and later. This option generates a limited PDB that indexes into the debug information in the object files and libraries used to build the executable instead of making a full copy. You can only use this limited PDB to debug from the computer where the binary and its libraries were built. If you deploy the binary elsewhere, you may debug it remotely from the build computer, but not directly on the test computer. Despite its name, **`/DEBUG:FASTLINK`** is generally slower than **`/DEBUG:FULL`**, so this option is not recommended.
2424

2525
A **`/DEBUG:FASTLINK`** PDB can be converted to a full PDB that you can deploy to a test machine for local debugging. In Visual Studio, use the **Property Pages** dialog as described below to create a full PDB for the project or solution. In a developer command prompt, you can use the `mspdbcmf.exe` tool to create a full PDB.
2626

2727
The **`/DEBUG:FULL`** option moves all private symbol information from individual compilation products (object files and libraries) into a single PDB, and can be the most time-consuming part of the link. However, the full PDB can be used to debug the executable when no other build products are available, such as when the executable is deployed.
2828

2929
The **`/DEBUG:NONE`** option doesn't generate a PDB.
3030

31-
In Visual Studio 2015 and earlier versions, when you specify **`/DEBUG`** with no extra arguments, the linker defaults to **`/DEBUG:FULL`** for command line and makefile builds, for release builds in the Visual Studio IDE, and for both debug and release builds. Beginning in Visual Studio 2017, the build system in the IDE defaults to **`/DEBUG:FASTLINK`** when you specify the **`/DEBUG`** option for debug builds. Other defaults are unchanged to maintain backward compatibility.
31+
Specifying **`/DEBUG`** with no extra arguments is equivalent to specifying **`/DEBUG:FULL`**.
3232

3333
The compiler's [`/Z7`](z7-zi-zi-debug-information-format.md) (C7 Compatible) option causes the compiler to leave the debugging information in the object (OBJ) files. You can also use the [`/Zi`](z7-zi-zi-debug-information-format.md) (Program Database) compiler option to store the debugging information in a PDB for the OBJ file. The linker looks for the object's PDB first in the absolute path written in the OBJ file, and then in the directory that contains the OBJ file. You can't specify an object's PDB file name or location to the linker.
3434

docs/docfx.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"externalReference": [],
3939
"globalMetadata": {
4040
"breadcrumb_path": "~/_breadcrumb/toc.yml",
41-
"extendBreadcrumb": "true",
4241
 "uhfHeaderId": "MSDocsHeader-CPP",
4342
"ROBOTS": "INDEX,FOLLOW",
4443
"manager": "markl",

0 commit comments

Comments
 (0)