I have an application that uses both the USB and WiFi interface. I am currently debugging an issue where I have to use both the phone's USB and WiFi, and it switches between WiFi networks. This renders both USB and WiFi debugging useless.
Is there a way I could start adb logcat to run as a background process, do everything that my app requires with USB and WiFi, and then stop the process I started and read the logs in a file?