Chapter Contents |
Previous |
Next |
SAS Component Language: Reference |
You can activate the debug option in the following ways:
proc build c=libref.catalog.entry.type; compile debug; run;
proc fsedit data=data-set screen=screen-entry debug; run;
Build | Debug | Debug On |
Tools | Options | Build | Debugger |
Note: If you specify
the DEBUG
option from a procedure statement, the option is active only for that procedure
or task.
In the BUILD procedure, using the DEBUG option in the COMPILE statement compiles all the specified programs with the DEBUG option. For example, the following statements compile all the FRAME entries in the catalog with the DEBUG option turned on:
proc build c=mylib.mycat; compile debug entrytype=frame; run;
By compiling specific SCL entries with the DEBUG option, you can debug pieces of a larger application.
The debugger session terminates and exits the current stream when you issue the QUIT command in the MESSAGE window, or when you end the procedure session. If the current stream is nested, then the last window in the previous stream will be activated. Otherwise, control returns to the point at which the application was started. A stream contains information about the entries and windows that are used in the application.
Because compiling with the DEBUG ON option results in a larger code size, you should subsequently recompile your programs with the DEBUG OFF option before installing your application in production mode.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.