The Macro Debug Tool helps users identify errors in their macros to reduce development time. The tool is easy-to-use: Edit macros, compile them and then run the simulation; the tool will start in the cMT Diagnoser. The tool also works on an HMI. Connect to the HMI in cMT Diagnoser and then import its macro codes; macro debugging can begin. When debugging, macro execution stops at each user-defined breakpoint so users can review the variables and execution results at that point. Line-by-line execution also is possible, allowing users to follow the codes to check whether the program branches and functions are being executed correctly.