Skip to content

Commit 410f94d

Browse files
authored
Add information on cwd
1 parent 6b49b40 commit 410f94d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ As soon as you save the **launch.vs.json** file, an entry is created in the **S
3535

3636
## Support for CMakeSettings variables
3737

38-
**Launch.vs.json** supports variables that are declared in **CMakeSettings.json** (see below) and that are applicable to the currently-selected configuration. It also has a key named `currentDir`, which sets the current directory of the launching app:
38+
**Launch.vs.json** supports variables that are declared in **CMakeSettings.json** (see below) and that are applicable to the currently-selected configuration. It also has a key named `currentDir`, which sets the current directory of the launching app for a local project:
3939

4040
```json
4141
{
@@ -52,6 +52,13 @@ When you run the app, the value of `currentDir` is something similar to
5252
```cmd
5353
C:\Users\satyan\7f14809a-2626-873e-952e-cdf038211175\
5454
```
55+
56+
The key 'cwd' sets the current directory of the launching app for a remote project. The default value is '${debugInfo.defaultWorkingDirectory}' which evaluates to
57+
58+
```cmd
59+
/var/tmp/src/bfc6f7f4-4f0f-8b35-80d7-9198fa973fb9/Linux-Debug
60+
```
61+
5562
## See also
5663

5764
[CMake Projects in Visual Studio](cmake-projects-in-visual-studio.md)<br/>
@@ -60,4 +67,4 @@ C:\Users\satyan\7f14809a-2626-873e-952e-cdf038211175\
6067
[Customize CMake build settings](customize-cmake-settings.md)<br/>
6168
[Configure CMake debugging sessions](configure-cmake-debugging-sessions.md)<br/>
6269
[Deploy, run, and debug your Linux project](../linux/deploy-run-and-debug-your-linux-project.md)<br/>
63-
[CMake predefined configuration reference](cmake-predefined-configuration-reference.md)<br/>
70+
[CMake predefined configuration reference](cmake-predefined-configuration-reference.md)<br/>

0 commit comments

Comments
 (0)