Dock: In Debug mode, spawn a copy of the executable instead of using the original executable.

That way, the process can be recompiled and restarted without the need of closing it in advanced.