Use the debug method on the Debug object to turn on debugging within your application.
sybdebug.debug(true, [classes], [printstream]);
sybdebug.debug(true,"MyClass")
sybdebug.debug(true,"MyClass:YourClass")
sybdebug.debug(true,"STATIC:MyClass")
sybdebug.debug(true,"ALL");
The printstream parameter is optional. If you do not specify a printstream, the debug output goes to the output file you specified with DriverManager.setLogStream.