C++ debugging for packaged game

Hello,

I have packaged my game for android as well as windows.
The game goes on till main menu but as soon as I open a level tge game crashes.

So I need to know how do I debug the game so that I can find the error in code.
I have tried Debug Game for Win64 and ARM by attaching to process , and I am getting an array index out bounds but I am nkt able to find where in the actual code this error is.

So I have managed to debug the game fir windows as platform but I am making the game for android.
I don’t know how to debug the apk using Visual Studio.
I follwed this link but without success → http://zompi.pl/unreal-engine-4-debugging-on-android/

An error is displayed saying" Unexpexted GDB output from command:target-select remite :5039.

Also this error"android command getproro.build.version.sdk’ failed to execute" was also displayed when I was trying todebug the apk.