I was going through some general stuff about operating systems and struck on a question. How will a developer debug when developing an operating system i.e. debug the OS itself?
You can use a VM: eg. debug ring0 code with bochs/gdb or Debugging NetBSD kernel with qemu
or a serial line with something like KDB.