Skip to content

Commit a42d3b0

Browse files
authored
Merge pull request #2298 from MicrosoftDocs/master
9/5/2019 AM Publish
2 parents fd0f883 + ade8623 commit a42d3b0

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

docs/linux/cmake-linux-project.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,18 @@ To provide IntelliSense support for headers on remote Linux systems, Visual Stud
107107

108108
To debug your code on the specified debug target system, set a breakpoint, select the CMake target as the startup item in the toolbar menu next to the project setting, and choose **⏵ Start** on the toolbar, or press F5.
109109

110-
To customize your program’s command line arguments, press the **Switch Targets** button at the top of **Solution Explorer** and then choose **Targets View**. Then right-click on the target and select **Debug and Launch Settings**. This opens or creates a launch.vs.json configuration file that contains information about your program. To specify additional arguments, add them in the `args` JSON array. For more information, see [Open Folder projects for C++](../build/open-folder-projects-cpp.md) and [Configure CMake debugging sessions](../build/configure-cmake-debugging-sessions.md).
110+
To customize your program’s command line arguments, press the **Switch Targets** button at the top of **Solution Explorer** and then choose **Targets View**. Then right-click on the target and select **Debug and Launch Settings**. This opens or creates a launch.vs.json configuration file that contains information about your program. To specify the location for source files, add a **sourceFileMap** property to the file, as shown in this example:
111+
112+
```json
113+
"MIMode": "gdb",
114+
"externalConsole": true,
115+
"sourceFileMap": {
116+
"c/Users/USER/source/repos/CMAKEPROJECTNAME": "C:\\Users\\USER\\source\\repos\\CMAKEPROJECTNAME"
117+
},
118+
"remoteMachineName": "${debugInfo.remoteMachineName}",
119+
```
120+
121+
To specify additional arguments, add them in the `args` JSON array. For more information, see [Open Folder projects for C++](../build/open-folder-projects-cpp.md) and [Configure CMake debugging sessions](../build/configure-cmake-debugging-sessions.md).
111122

112123
## <a name="configure_cmake_linux"></a> Configure CMake settings for Linux
113124

docs/linux/connect-to-your-remote-linux-computer.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Connect to your target Linux system in Visual Studio"
33
description: "How to connect to a remote Linux machine or WSL from inside a Visual Studio C++ project."
4-
ms.date: "06/19/2019"
4+
ms.date: "09/04/2019"
55
ms.assetid: 5eeaa683-4e63-4c46-99ef-2d5f294040d4
66
---
77

@@ -104,7 +104,4 @@ To configure your project for WSL, see [Configure a Linux project](configure-a-l
104104
[Configure a Linux project](configure-a-linux-project.md)<br />
105105
[Configure a Linux CMake project](cmake-linux-project.md)<br />
106106
[Deploy, run and debug your Linux project](deploy-run-and-debug-your-linux-project.md)<br />
107-
108-
109-
110-
107+
[Configure CMake debugging sessions](../build/configure-cmake-debugging-sessions.md)

0 commit comments

Comments
 (0)