Add debug task

Similar to start task, but waits for a debugger to be attached.
Allows testing onCreate methods, that otherwise run as soon as you start, and don't allow one to attach a debugger.