Hi Aneel,
The standard program RSNAST00 will be called to print/trigger idocs from a message type.
Follow the below approach to debug :
1. Set the dispatch time as 1 and save the document.
2. Run RSNAST00 program with document number and message type and debug.
Thanks
-Learner