update TypeScript sample. always debug : On