Debugging Android in VS2019?

I was just playing around with Visual Studio 2019 and managed to run and debug a template Native-Activity Android app on my phone.

Would it be possible to ditch Android Studio altogether and compile cocos2d-x through Visual Studio instead, I couldn’t find any clear guides on how to do so.

I didn’t try it, but you should read this topic or follow this guide (click arrow button):

Guides

Android developers: use Visual Studio!
https://docs.cocos2d-x.org/cocos2d-x/v4/en/installation/Android-VisualStudio.html

The guides say that it is deprecated, though.
(I use Cocos2d-x 4.0 with Android Studio for building and Xcode for debugging.)