To debug just compile the program normally and then use: BUG where file is the program EXE name. This will use Watcom Debugger to debug your program. There is a 'INT 3' placed just before main() is called from the startup code, so run the program normally and then step into the first CALL you see.