|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.util.DebugServer
public class DebugServer
Field Summary | |
---|---|
static String |
ABORTED
|
static String |
BREAK
|
static String |
BREAKAT
|
static String |
BREAKPOINT
|
static String |
BREAKPOINTS
|
static String |
CONFIG
|
static String |
CONT
|
static String |
CONTEXT
|
static String |
CONTROL
|
static int |
DEBUG_PORT
|
static String |
ENGINE_VARS
|
static String |
EVAL
|
static String |
FLAGS
|
static String |
HELLO
|
static String |
INIT
|
static String |
INIT_BREAK
|
static String |
LOGMSG
|
static String |
QUIT
|
static String |
SCRIPT
|
static String |
STATS
|
static String |
STATUS
|
static String |
STEP
|
static String |
STEP_OVER
|
static String |
STOP
|
static String |
UNIQUE_ID
|
Constructor Summary | |
---|---|
DebugServer(String taskname)
|
Method Summary | |
---|---|
void |
aborted(Throwable t)
|
void |
addScriptObject(String key,
Object value)
|
void |
clearScriptObjects()
|
Attribute |
convertAttribute(Attribute a)
Converts the values in the attribute to a serializable representation if needed. |
Entry |
convertEntry(Entry entry)
Checks if entry is of type Entry and traverses all attributes and values to see if any of them are not serializable. |
Object |
convertObject(Object value)
Converts an object to a serializable representation if needed. |
void |
debugBreak(Object obj)
|
void |
debugBreak(Object obj,
boolean onerror)
|
void |
debugBreak(Object obj,
boolean onerror,
int linenumber)
|
void |
debugBreak(Object obj,
boolean onerror,
int linenumber,
int scriptRef)
|
void |
debugClose()
|
void |
debugClose(Object msg)
|
boolean |
debugConnect()
|
boolean |
debugConnect(int port)
|
boolean |
debugConnect(String host,
int tcpport)
|
boolean |
debugConnect(String host,
int tcpport,
boolean onerror)
|
void |
debugInit()
|
void |
debugMsg(Object msg)
|
void |
debugStatement(com.ibm.jscript.ASTTree.ASTNode statement,
com.ibm.jscript.engine.IExecutionContext context)
This method is called from ASTDebug for each node in the script. |
Hashtable<String,Breakpoint> |
getBreakpoints()
This method returns a table of Breakpoints. |
Object |
getConnectorList(boolean includestats)
|
DebugMessage |
getDebuggerFlags()
|
List<String> |
getHookNames(AssemblyLineComponent tc,
Object[] hooks)
|
String |
getLastKnownLocation()
Returns the last known location. |
Hashtable<String,Object> |
getScriptEngineVariables(String filter)
Returns a table with the script engine variables. |
String |
getUniqueID()
|
boolean |
isAborted()
Returns true if an ABORT message has been sent to the remote CE |
boolean |
isConnected()
|
boolean |
isOnerror()
|
void |
logmsg(Object str)
|
void |
safeWriteObject(Object obj)
This method write an object or an exception to the debugger. |
void |
setLog(Log log)
|
void |
setOnerror(boolean onerror)
Sets the onerror flag. |
void |
setScriptEngine(ScriptEngine se)
|
void |
setTask(Object task)
|
void |
setUniqueID(String id)
|
void |
switchTo(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEBUG_PORT
public static final String CONTROL
public static final String STOP
public static final String CONT
public static final String BREAK
public static final String LOGMSG
public static final String HELLO
public static final String EVAL
public static final String STATS
public static final String QUIT
public static final String INIT
public static final String FLAGS
public static final String BREAKPOINTS
public static final String BREAKPOINT
public static final String ENGINE_VARS
public static final String STATUS
public static final String ABORTED
public static final String STEP_OVER
public static final String STEP
public static final String BREAKAT
public static final String CONFIG
public static final String UNIQUE_ID
public static final String INIT_BREAK
public static final String SCRIPT
public static final String CONTEXT
Constructor Detail |
---|
public DebugServer(String taskname)
Method Detail |
---|
public void setLog(Log log)
public void setScriptEngine(ScriptEngine se)
public void setTask(Object task)
public void addScriptObject(String key, Object value)
public void clearScriptObjects()
public void debugInit() throws Exception
Exception
public void switchTo(String name) throws Exception
Exception
public boolean debugConnect()
public boolean debugConnect(int port)
public boolean debugConnect(String host, int tcpport)
public boolean debugConnect(String host, int tcpport, boolean onerror)
public void debugClose()
public boolean isConnected()
public void debugMsg(Object msg) throws Exception
Exception
public void debugClose(Object msg)
public void aborted(Throwable t) throws Exception
Exception
public void debugBreak(Object obj) throws Exception
Exception
public void debugBreak(Object obj, boolean onerror) throws Exception
Exception
public void debugBreak(Object obj, boolean onerror, int linenumber) throws Exception
Exception
public void debugBreak(Object obj, boolean onerror, int linenumber, int scriptRef) throws Exception
Exception
public DebugMessage getDebuggerFlags()
public Hashtable<String,Breakpoint> getBreakpoints() throws Exception
Exception
public Hashtable<String,Object> getScriptEngineVariables(String filter)
filter
- regex to filter specific variables. Not used.
public Entry convertEntry(Entry entry)
entry
- The Entry object to convert
public Attribute convertAttribute(Attribute a)
a
- The attribute to convert
public Object convertObject(Object value)
value
- Object to convert.
public List<String> getHookNames(AssemblyLineComponent tc, Object[] hooks)
public Object getConnectorList(boolean includestats) throws Exception
Exception
public void logmsg(Object str)
public void safeWriteObject(Object obj) throws Exception
Exception
public boolean isOnerror()
public void setOnerror(boolean onerror)
onerror
- public String getLastKnownLocation()
public boolean isAborted()
public void debugStatement(com.ibm.jscript.ASTTree.ASTNode statement, com.ibm.jscript.engine.IExecutionContext context) throws com.ibm.jscript.JavaScriptException
debugStatement
in interface ScriptEngineOptions.TDIDebugListener
com.ibm.jscript.JavaScriptException
public String getUniqueID()
public void setUniqueID(String id)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |