Tuanjie supports the following ways to debug an application on an OpenHarmony device:
Tuanjie supports USB debugging for OpenHarmony devices. To use USB debugging, enable developer options on your device.
Use a USB cable to connect the device to your computer. If you are developing on a Windows computer, you might need to install a device-specific USB driver. See the manufacturer’s website for your device for additional information.
The setup process differs for Windows and macOS. For more information on connecting your OpenHarmony device to the SDK, refer to the Run Your App section of the OpenHarmony Developer documentation.
Tuanjie supports OpenHarmony Device Connector (HDC) over USB for OpenHarmony devices and over wireless connection for OpenHarmony devices. Wireless connection is useful when you can’t perform USB debugging, such as when a controller is plugged into the OpenHarmony device
To connect an OpenHarmony device to Tuanjie through HDC using a USB:
To wirelessly connect an OpenHarmony device to Tuanjie through HDC:
5555
, you don’t need to enter it. After Tuanjie successfully connects to the device, it selects the device as the Run Device.When you run a build of your application on an OpenHarmony device, OpenHarmony collects messages such as stack traces and logs from scripts.