Obtaining an Instance of the Debug Class

Import the Debug interface and obtain an instance of the Debug class by calling the getDebug method on the SybDriver class.

import com.sybase.jdbcx.Debug;
//
... 
SybDriver sybDriver = (SybDriver)
Class.forName("com.sybase.jdbc4.jdbc.SybDriver").newInstance();
Debug sybdebug = sybDriver.getDebug();
...