I tried to debug a release version of my Android application but Android Studio failed to attach a debugger. (It could not find Android procces of my running application).>
if intellij or AS you should make sure your Build Variants Setting is debug.