Added debug option to block waiting for a newline in stdin. Hackish, but it helps when attaching a profiler.