Check this out:
I can debug java and c++ code as well as edit it directly in Android Studio. Console not required!