Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class DebugTool

Hierarchy

java.lang.Object

Package
com.smartdevicelink.util

Fields

TAG

public static final java.lang.String TAG
Constant Value
"SdlProxy"

consoleListenerList

protected static java.util.Vector consoleListenerList

isTransportEnabled

protected static final boolean isTransportEnabled

isRPCEnabled

protected static final boolean isRPCEnabled

Constructors

DebugTool()

public DebugTool()

Methods

enableDebugTool()

public static void enableDebugTool()

disableDebugTool()

public static void disableDebugTool()

isDebugEnabled()

public static boolean isDebugEnabled()

logError( String msg )

public static void logError(String msg)

Parameters

msg

logError( String msg, Throwable ex )

public static void logError(String msg,Throwable ex)

Parameters

msg
ex

logWarning( String msg )

public static void logWarning(String msg)

Parameters

msg

logInfo( String msg )

public static void logInfo(String msg)

Parameters

msg

logInfo( String msg, boolean bPrependVersion )

public static void logInfo(String msg,boolean bPrependVersion)

Parameters

msg
bPrependVersion

logToSiphon( String msg )

protected static java.lang.Boolean logToSiphon(String msg)

Parameters

msg

getLine( Throwable ex )

protected static java.lang.String getLine(Throwable ex)

Parameters

ex

addConsole( IConsole console )

public static void addConsole(IConsole console)

Parameters

console

removeConsole( IConsole console )

public static void removeConsole(IConsole console)

Parameters

console

clearConsoles()

public static void clearConsoles()

logTransport( String msg )

public static void logTransport(String msg)

Parameters

msg

logRPCSend( String rpcMsg )

public static void logRPCSend(String rpcMsg)

Parameters

rpcMsg

logRPCReceive( String rpcMsg )

public static void logRPCReceive(String rpcMsg)

Parameters

rpcMsg

logInfoToConsole( String msg )

protected static void logInfoToConsole(String msg)

Parameters

msg

logErrorToConsole( String msg )

protected static void logErrorToConsole(String msg)

Parameters

msg

logErrorToConsole( String msg, Throwable e )

protected static void logErrorToConsole(String msg,Throwable e)

Parameters

msg
e

logRPCSendToConsole( String msg )

protected static void logRPCSendToConsole(String msg)

Parameters

msg

logRPCReceiveToConsole( String msg )

protected static void logRPCReceiveToConsole(String msg)

Parameters

msg

getRPCHash( SdlPacket packet )

Debug method to try to extract the RPC hash from the packet payload. Should only be used while debugging, not in production. Currently it will only handle single frame RPCs

public static java.util.Hashtable getRPCHash(SdlPacket packet)

Parameters

packet
to inspect

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section