## Display Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Debugging Support

Debugging support is provided through a macro, color_puts<>, contained in seamless.inc. This macro sends data through the kernel debugger port to a serial port. The kernel debugger and its related documentation is provided with the OS/2 2.X Toolkit. The input for the macro is foreground color, background color <string>, as follows:

    ifdef FIREWALLS

            color_puts  BLUE,BLACK,< This message will be output to
                                            the debugging terminal >

    endif ;FIREWALLS

Current debugging messages in the code are placed inside the conditional compilation ifdef FIREWALLS. This value is defined when compiling the debug version of the driver. Another example of this macro can be found in init. asm.