Skip to content

Debugging the QEMU VM

Leandro Zungri edited this page Apr 4, 2020 · 2 revisions

There are two simple steps you need to follow in order to debug QEMU:

  1. Launch QEMU in debug mode
  2. Start the debugger

Launching QEMU in debug mode

Run the launch.py script with the -D option as in:

$LARITOS/tools/qemu/launch.py -D

You should immediately see the following message:

Launching qemu in debugging mode (listening on :55555)

Then, the launcher will wait until the debugger is connected.

Launching the debugger

Open a new terminal and run the following command:

gdb <your_qemu>/bin/arm-softmmu/qemu-system-arm -ex "target remote :55555" -q