add debug info on Note patching