For those who are interested in using Citra GDBStub,
1. Run GDB in the terminal (WSL Bash, terminal, etc.) You should have "(gdb)" replacing the "$" symbol.
2. Open Citra emulator.
3. Check and enable GDB Stub, and set the port number.
4. Back in Citra emulator, open and execute a game.
5. Check to see the Citro command prompt/terminal is saying "Debug.GDBStub: Waiting for gdb to connect...."
6. In your GDB terminal, type:
Code:
target remote localhost:####
Where #### is your port number you have set earlier.
7. You will see:
Code:
Remote debugging using localhost:####
After you pressed Enter key. This means your GDB is connected to Citra emulator GDB Stub.
8. You can now press and type "si" to run 1 instruction, "n" to step over, and so on.