Android Studio has support for debugging Java and also C/C++ code. The problem is that in default configuration the debugger might not work. There is a quick way how to fix the issue.
Go to your application and select Edit Configurations…
Select tab Debugger and change Debug type to value Dual. Press Ok.
Android Studio will check installed packages and in the case of missing debugger it will prompt you to confirm the fix. Just click Yes.
After installation of necessary packages, the debugger will start and you’ll be able to debug even C/C++ code.