When using the debug target, the GDB server is spawned automatically in the background. This logic is moved in a external script