## Display Device Driver Reference for OS/2

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

### Debugging Support

Debugging support is provided through a macro that sends data through the kernel debugger port to a serial port. The kernel debugger and its related documentation is provided with the Developer's Toolkit for OS/2. By inserting the DebugMsg2<> macro, the supplied string will be routed to the debugging port.

    ifdef FIREWALLS

            DebugMsg2       < This will be printed at the debugging terminal. >

    endif ;FIREWALLS

Current debug messages in the code are placed inside the conditional compilation ifdef FIREWALLS. This value is defined when compiling the debug version of the driver.