Fix: the debug count varies depending on how a platform handles PTY.spawn.