wi fi – There is no WiFi signal when debugging the application

I'm using a real device to build code with IntelliJ.
I realized that when I launch the application, the WiFi signal is too weak, which almost lost the connection.
My device is Xiaomi Redmi note 5. WiFi only loses connection when I run the application or debug it. If someone has the same problem, tell me please, lost internet connection and I can not run the application and test it.