Do not detach in debug mode.