Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaSE Documentation
DebugTool

Class DebugTool

Hierarchy

java.lang.Object

Package
com.smartdevicelink.util

Fields

TAG

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

consoleListenerList

protected static final 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 tag, String msg )

public static void logError(String tag,String msg)

Method Parameters

tag
msg

logError( String tag, String msg, Throwable ex )

public static void logError(String tag,String msg,Throwable ex)

Method Parameters

tag
msg
ex

logWarning( String tag, String msg )

public static void logWarning(String tag,String msg)

Method Parameters

tag
msg

logInfo( String tag, String msg )

public static void logInfo(String tag,String msg)

Method Parameters

tag
msg

logInfo( String tag, String msg, Boolean bPrependVersion )

public static void logInfo(String tag,String msg,Boolean bPrependVersion)

Method Parameters

tag
msg
bPrependVersion

logToSiphon( String msg )

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

Method Parameters

msg

getLine( Throwable ex )

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

Method Parameters

ex

addConsole( IConsole console )

public static void addConsole(IConsole console)

Method Parameters

console

removeConsole( IConsole console )

public static void removeConsole(IConsole console)

Method Parameters

console

clearConsoles()

public static void clearConsoles()

logTransport( String msg )

public static void logTransport(String msg)

Method Parameters

msg

logRPCSend( String rpcMsg )

public static void logRPCSend(String rpcMsg)

Method Parameters

rpcMsg

logRPCReceive( String rpcMsg )

public static void logRPCReceive(String rpcMsg)

Method Parameters

rpcMsg

logInfoToConsole( String msg )

protected static void logInfoToConsole(String msg)

Method Parameters

msg

logErrorToConsole( String msg )

protected static void logErrorToConsole(String msg)

Method Parameters

msg

logErrorToConsole( String msg, Throwable e )

protected static void logErrorToConsole(String msg,Throwable e)

Method Parameters

msg
e

logRPCSendToConsole( String msg )

protected static void logRPCSendToConsole(String msg)

Method Parameters

msg

logRPCReceiveToConsole( String msg )

protected static void logRPCReceiveToConsole(String msg)

Method 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)

Method 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