Well apparently you can debug your own phone without pc, just make sure you connect to a wifi. You can done it by installing android-tools and then pair it using wireless debugging
ADB VM 5722 - Router Configuration | WINDTRE BUSINESS
debugging - Run/install/debug Android applications over Wi-Fi? - Stack Overflow
android studio - Wi-Fi Debug (ADB) - There was an error pairing the device - Stack Overflow
Home Page - ADB
networking - How can I connect to Android with ADB over TCP? - Stack Overflow