目录

What should I do if lldb-server cannot be connected during native debugging?

Symptom: Native debugging is not started for a long time, and the error message "Attach request timeout after 600000 milliseconds " is displayed after DevEco Studio times out, or the error message "Failed to connect port" is displayed after native debugging is started.

Possible Causes

The /etc/hosts file in Linux or macOS is modified.

Solution

  1. Add the following information to the /etc/hosts file:
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
  2. Restart the computer for the modification to take effect.