The following paragraphs give three ways to debug an NLM. Since this is an introduction to the NLM programming course, only an overview is given. With that in mind, let us look at three methods available for debugging an NLM.
First, use print statements that output information to the server screen. This way you can tell where the program last completed an area of code.
Second, use RDEBUG. RDEBUG runs on the client and allows you to set breakpoints.
Third, use NDEBUG. NDEBUG is useful when you have an abnormal end or abend on the server.
The following URL provides more information about internal NetWare debugging:
http://developer.novell.com/research/appnotes/1995/june/04/04.htm