Android Studio will not attach a debugger if the preview is open
If I try to debug a project while the preview is open for Composables (Split – Alt+Shift+Right), the debugger fails to connect. I have to close the split (click the code button) to run the code.