Version: 2023.2
Support user input on ChromeOS devices
Build for ChromeOS

Debugging on a ChromeOS device

While developing an application for ChromeOS, you may find issues that you need to debug on a ChromeOS device. You can use the Unity Profiler and Managed Debuggers to profile and debug applications respectively on ChromeOS devices.

ChromeOS has networking restrictions which mean the Unity Profiler and Managed Debuggers can’t automatically connect to ChromeOS devices wireless or through USB connections. Instead, manually connect to the device wirelessly using its IP address. To do this:

Android Debug Bridge for ChromeOS devices

To wirelessly connect ADB to a ChromeOS device:

  1. Enable ADB on the device. For information on how to do this, refer to Enable ADB debugging.
  2. Find the IP address of the device. For information on how to do this, refer to Connect to ADB over a network.
  3. In Unity, open Android Build settings.
  4. In the Build settings window, select the Run Device drop-down and then select the <Enter IP> option.
  5. In the window that opens, enter the IP address and port number of the device and select Add. If the device’s port number is 5555, you don’t need to enter it. After Unity successfully connects to the device, it selects the device as the Run Device.

注意

Support user input on ChromeOS devices
Build for ChromeOS