Debug Howto - Android-x86 - Porting Android to x86
set up host-only network as mentioned earlier in the terminal emulator, run su in the terminal emulator, run gdbserver :1234 [application binary name with the path] or [--attach pid] on your host machine, run gdb [path of your application binary]...