Chapter Contents

Previous

Next
Compiler Options

dbhook Option

The dbhook option generates hooks in the object code that is generated by the compiler. When you compile a module with the debug option, the dbhook option is implied. dbhook can be used with the optimize option in order to enable debugging of optimized object code. The default is nodbhook.

When you are using the debugger with optimized object code that has been compiled with the dbhook option, the source code is not displayed in the Source window and you cannot access variables. Therefore, the print command, and other commands that are normally used with variables, are not used when you are debugging optimized code. However, you can issue commands such as step, goto, and runto in order to control the execution of your program. Also, source code line numbers are displayed in the Source window, providing an indication of your location in the code. Also, you have the capability of viewing register values in the Register window.

The debugging of optimized code is most effective when it is used in conjunction with the Object Module Disassembler (OMD) or your system's debugger. The OMD is described in the SAS/C Compiler and Library User's Guide.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.