Version: 2022.3
Debug UWP applications with IL2CPP
Debug generated C++ code

Debug C# code

Before you can debug C# code with IL2CPP for your Universal Windows Platform (UWP) application, you need to do the following:

  1. In File > Build Settings, enable Script Debugging.
  2. In Player settings, enable the InternetClient, InternetClientServer, and PrivateNetworkClientServer capabilities.
    Note: You can also enable these capabilities in the manifest. You will need to change these capabilities from the Visual Studio manifest editor because the manifest isn’t overwritten when you build on top of an earlier build.

The debugging procedure for UWP applications is the same as for other platforms. For more information on how to debug C# code, refer to Debug C# code in Unity.

其他资源

Debug UWP applications with IL2CPP
Debug generated C++ code