Medpace interview question

How can custom macros be made? How do you debug a Sas program?