Dave Looman
Ansys Employee

There is an undocumented command, DEBUG, you can issue in the APDL gui.  After issuing the command input the macro and you can step through it line by line.