######################################### # # # Ways to debug in Qemu # # # ######################################### DEBUGCON ############### -debugcon file:debug.log -global isa-debugcon.iobase=0x402 SERIAL ############### -serial stdio redirects the virtual serial port to the host's terminal i/o TRACE ############### -D ./qemu_log.txt -d guest_errors, nochain, exec, in_asm, out_asm, op, op_opt, op_ind, int, cpu, mmu, pcall, cpu_reset, unimp, page --trace "memory_region*" MONITOR ############### -monitor stdio or Ctrl + Alt + 2 (Exit with Ctrl + Alt + 1) GDB - GNU DEBUGGER ##################### -s -S (when starting qemu) (gdb) target remote localhost:1234 (gdb) c