Install and run your HarmonyOS app/atomic service on a local real device in either USB or wireless mode.
Wearables (excluding lite wearables) support only wireless debugging.

, or press Shift+F10 (Control+R on macOS).
Since DevEco Studio 5.1.1 Beta1, if DevEco Studio cannot detect the device after it is connected, the message "No Devices" is displayed. You can use the device connection assistant for troubleshooting. Click the device drop-down menu and select Troubleshoot Device Connections to enable it. This initiates a three-step diagnostic process. Click Next after completing each step.

After screen always-on is enabled, DevEco Studio will continuously send screen-on instructions to the device to keep the screen on. Even if the device is manually locked, the screen will automatically turn back on. This is the normal behavior of DevEco Studio sending screen-on instructions to keep the screen on.
To disable the screen always-on mode, use either of the following methods:
After disabling, DevEco Studio will stop sending screen-on instructions, and the device can enter the sleep mode normally.

. After the connection is successful, the device status is online.
hdc tconn device IP address:port number
, or press Shift+F10 (Control+R on macOS).