Debugging with VSCode and QEMU
Setting Up Debugging
Debugging the kernel with VSCode and QEMU uses remote GDB debugging. Breakpoints can be set directly in the editor as with any standard debugging session.
How to Debug
- Open the RUN AND DEBUG view in VSCode
- Set breakpoints anywhere in your kernel source code
- Start your debugging session (F5) — for example, select Debug x64 DevKernel from the RUN AND DEBUG dropdown
- Qemu will launchs and the kernel will stop at your breakpoints as expected