call onerror/onbreak macros for simulate do file