This script helps you to setup your android smartphone to debug your apps via WiFi. This script works only in Windows.
1) Enable USB debugging in Developer Options in your device settings.
2) Plug your device in your PC and click Accept in the dialog that will appear in your phone.
3) Place this program inside the folder that contains adb.exe, usually in C:\Users\YOUR_USER\AppData\Local\Android\Sdk\platform-tools
4) Run the program.