fix save logger bug & add watch target for debug script api