This should be a common requirement but I am a bit shocked that no one has answered it before. My goal is to debug in VSCode for an running Android app, which is built with Unity.
- If I use 'Unity debugger' in VSCode, it doesn't reach breakpoints.
- If I use 'Android debugger' in VSCode, it asks me to specify source code directly but this app is built with Unity and there is no Android project directory.
So which one should be done to achieve it? In VS studio, I can "Attach to Unity debugger" and choose the Android player listed (if via USB). But it's not that easy in VSCode.
Thanks in advance.