sct debug mode and read from stdin pipe