Skip to content

Commit fbb92a1

Browse files
authored
Merge pull request #8384 from MicrosoftDocs/main637967847539463326sync_temp
Repo sync for protected CLA branch
2 parents cf88eb2 + 02e21be commit fbb92a1

8 files changed

+23
-17
lines changed

docs/debugger/create-custom-views-of-native-objects.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,19 @@ You can also specify multi-dimensional arrays. In that case, the debugger needs
489489
<Rank>$T2</Rank>
490490
<Size>_M_extent._M_base[$i]</Size>
491491
<ValuePointer>($T1*) _M_buffer_descriptor._M_data_ptr</ValuePointer>
492+
<LowerBound>0</LowerBound>
492493
</ArrayItems>
493494
</Expand>
494495
</Type>
495496
```
496497

497498
- `Direction` specifies whether the array is in row-major or column-major order.
498499
- `Rank` specifies the rank of the array.
499-
- The `Size` element accepts the implicit `$i` parameter, which it substitutes with the dimension index to find the length of the array in that dimension. In the previous example, the expression `_M_extent.M_base[0]` should give the length of the 0th dimension, `_M_extent._M_base[1]` the 1st, and so on.
500+
- The `Size` element accepts the implicit `$i` parameter, which it substitutes with the dimension index to find the length of the array in that dimension.
501+
- In the previous example, the expression `_M_extent.M_base[0]` should give the length of the 0th dimension, `_M_extent._M_base[1]` the 1st, and so on.
502+
- The `LowerBound` specifies the lower bound of each dimension of the array. For multi-dimensional arrays, you can specify an expression that uses the implicit `$i` parameter. The `$i` parameter will be substituted with the dimension index to find the lower bound of the array in that dimension.
503+
- In the previous example, all dimensions will start at 0. However, if you had `($i == 1) ? 1000 : 100` as the lower bound, the 0th dimension will start at 100, and the 1st dimension will start at 1000.
504+
- E.g. `[100, 1000], [100, 1001], [100, 1002], ... [101, 1000], [101, 1001],...`
500505

501506
Here's how a two-dimensional `Concurrency::array` object looks in the debugger window:
502507

12.3 KB
Loading
87.2 KB
Loading
-11.5 KB
Binary file not shown.
-134 KB
Binary file not shown.

docs/debugger/project-settings-for-a-cpp-debug-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Project settings for a C++ debug config"
33
description: Configure C and C++ debugging in Property Pages. This article describes the settings and tells you their category.
44

5-
ms.date: "06/07/2022"
5+
ms.date: "08/19/2022"
66
ms.topic: "reference"
77
f1_keywords:
88
- "VC.Project.VCDebugSettings.WebBrowser.DebuggerType"
@@ -148,7 +148,7 @@ You can change the project settings for a C or C++ debug configuration in the **
148148
| **GPU Default Breakpoint Behavior** (GPU debugging only) | Specifies whether a breakpoint event should be raised for each thread in a SIMD warp. The default setting is to raise the breakpoint event only once per warp. |
149149
| **Amp Default Accelerator** | Specifies the default AMP accelerator when debugging GPU code. Choose **WARP software accelerator** to investigate if an issue is caused by the hardware or a driver instead of your code. |
150150
| **Deployment Directory** (Remote Windows Debugger) | Specifies the path on the remote computer where the project output will be copied prior to launch. The path can be a network share on the remote computer, or it can be a path to a folder on the remote computer. The default setting is empty, which means the project output is not copied to a network share. To enable deployment of the files, you must also select the **Deploy** check box in the Configuration Manager dialog box. For more information, see [How to: Create and edit configurations](../ide/how-to-create-and-edit-configurations.md). |
151-
| **Additional Files to Deploy** (Remote Windows Debugger) | If the Deployment Directory property is set, this is a semicolon-delimited list of additional files to copy to the deployment directory. The default setting is empty, which means that no additional files are copied to the deployment directory. To enable deployment of the files, you must also select the **Deploy** check box in the Configuration Manager dialog box. For more information, see [How to: Create and edit configurations](../ide/how-to-create-and-edit-configurations.md). |
151+
| **Additional Files to Deploy** (Remote Windows Debugger) | If the Deployment Directory property is set, this is a semicolon-delimited list of additional folders or files to copy to the deployment directory. The default setting is empty, which means that no additional folders or files are copied to the deployment directory. To copy the contents of a folder to the same folder in the Deployment Directory, specify a folder name. To enable deployment of the files, you must also select the **Deploy** check box in the Configuration Manager dialog box. For more information, see [How to: Create and edit configurations](../ide/how-to-create-and-edit-configurations.md). |
152152
| **Deploy Visual C++ Debug Runtime Libraries** (Remote Windows Debugger) | If the Deployment Directory property is set, this specifies whether the Visual C++ debug runtime libraries for the current platform should be copied to the network share. The default setting is Yes. |
153153

154154
## C/C++ folder (General category)

docs/debugger/remote-debugging-cpp.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Remote Debug a C++ Project | Microsoft Docs"
33
description: Learn how to debug a Visual Studio C++ application from a remote computer by following these step-by-step instructions.
44
ms.custom: "remotedebugging"
5-
ms.date: "11/11/2021"
5+
ms.date: "08/19/2022"
66
ms.topic: "conceptual"
77
dev_langs:
88
- "C++"
@@ -52,50 +52,52 @@ The remote debugger is supported on Windows 7 and newer and versions of Windows
5252
> If you need to add permissions for additional users, change the authentication mode, or port number for the remote debugger, see [Configure the remote debugger](../debugger/remote-debugging.md#configure_msvsmon).
5353
5454
## <a name="remote_cplusplus"></a> Remote debug a C++ project
55-
In the following procedure, the name and path of the project is C:\remotetemp\MyMfc, and the name of the remote computer is **MJO-DL**.
55+
In the following procedure, the path of the project is C:\remotetemp, and the name of the remote computer is **MySurface**.
5656

57-
1. Create an MFC application named **mymfc.**
57+
1. Create a C++ Console application named **CppConsoleApp**
5858

59-
2. Set a breakpoint somewhere in the application that is easily reached, for example in **MainFrm.cpp**, at the start of `CMainFrame::OnCreate`.
59+
2. Set a breakpoint somewhere in the application that is easily reached, for example in **CppConsoleApp.cpp**, in the `main` function.
6060

6161
3. In Solution Explorer, right-click on the project and select **Properties**. Open the **Debugging** tab.
6262

6363
4. Set the **Debugger to launch** to **Remote Windows Debugger**.
6464

65-
![Screenshot of the Debugging tab in the Visual Studio Solution Explorer Properties. The Debugger to launch property is set to Remote Windows Debugger.](../debugger/media/remotedebuggingcplus.png)
65+
![Screenshot of the Debugging tab in the Visual Studio Solution Explorer Properties. The Debugger to launch property is set to Remote Windows Debugger.](../debugger/media/remote-debugging-cpp.png)
6666

6767
5. Make the following changes to the properties:
6868

6969
|Setting|Value|
7070
|-|-|
71-
|Remote Command|C:\remotetemp\mymfc.exe|
71+
|Remote Command|C:\remotetemp\CppConsoleApp.exe|
7272
|Working Directory|C:\remotetemp|
73-
|Remote Server Name|MJO-DL:*portnumber*|
73+
|Remote Server Name|MySurface:*portnumber*|
7474
|Connection|Remote with Windows Authentication|
7575
|Debugger Type|Native Only|
76-
|Deployment Directory|C:\remotetemp.|
77-
|Additional Files to Deploy|C:\data\mymfcdata.txt.|
76+
|Deployment Directory|C:\remotetemp|
77+
|Additional Files to Deploy|$(ProjectDir)\data|
7878

79-
If you deploy additional files (optional), the folder must exist on both machines.
79+
If you deploy additional folders, and want all the files in a folder deployed to the same folder, specify a folder name.
80+
81+
For more information on the properties, see [Project settings for a C++ Debug configuration](../debugger/project-settings-for-a-cpp-debug-configuration.md).
8082

8183
6. In Solution Explorer, right-click the solution and choose **Configuration Manager**.
8284

8385
7. For the **Debug** configuration, select the **Deploy** check box.
8486

85-
![Screenshot of the Configuration Manager in the Visual Studio Solution Explorer. The Debug configuration is selected, and Deploy is checked.](../debugger/media/remotedebugcplusdeploy.png)
87+
![Screenshot of the Configuration Manager in the Visual Studio Solution Explorer. The Debug configuration is selected, and Deploy is checked.](../debugger/media/remote-debug-cpp-deploy.png)
8688

8789
8. Start debugging (**Debug > Start Debugging**, or **F5**).
8890

8991
9. The executable is automatically deployed to the remote computer.
9092

9193
10. If prompted, enter network credentials to connect to the remote machine.
9294

93-
The required credentials are specific to your network's security configuration. For example, on a domain computer, you might choose a security certificate or enter your domain name and password. On a non-domain machine, you might enter the machine name and a valid user account name, like <strong>MJO-DL\[email protected]</strong>, along with the correct password.
95+
The required credentials are specific to your network's security configuration. For example, on a domain computer, you might choose a security certificate or enter your domain name and password. On a non-domain machine, you might enter the machine name and a valid user account name, like <strong>MySurface\[email protected]</strong>, along with the correct password.
9496

9597
11. On the Visual Studio computer, you should see that execution is stopped at the breakpoint.
9698

9799
> [!TIP]
98-
> Alternatively, you can deploy the files as a separate step. In the **Solution Explorer,** right-click the **mymfc** node and then choose **Deploy**.
100+
> Alternatively, you can deploy the files as a separate step. In the **Solution Explorer,** right-click the project node and then choose **Deploy**.
99101
100102
If you have non-code files that are required by the application, you can specify them in a semicolon delimited list in **Additional Files to Deploy** on the **Remote Windows Debugger** page.
101103

gamedev/unity/unity-scripting-upgrade.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,5 +343,4 @@ The sample contains examples of several .NET 4.x features. You can download the
343343
* [History of C#](/dotnet/csharp/whats-new/csharp-version-history)
344344
* [What's New in C# 6](/dotnet/csharp/whats-new/csharp-6)
345345
* [Asynchronous programming in Unity, Using Coroutine and TAP](/archive/blogs/appconsult/unity-coroutine-tap-en-us)
346-
* [Async-Await Instead of Coroutines in Unity 2017](http://www.stevevermeulen.com/index.php/2017/09/using-async-await-in-unity3d-2017/)
347346
* [Unity Forum - Experimental Scripting Previews](https://forum.unity.com/forums/experimental-scripting-previews.107/)

0 commit comments

Comments
 (0)