launch: direct: Add some code to enable qemu / gdb debugging.

See the comment for details.

Note this is disabled by default.  Developers can only enable it by
changing #if 0 -> #if 1.