|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.debug.DebuggerImpl
public final class DebuggerImpl
Class to debug the application
Constructor Summary | |
---|---|
DebuggerImpl()
|
Method Summary | |
---|---|
void |
addException(Config config,
PageException pe)
|
void |
addImplicitAccess(String scope,
String name)
|
void |
addQuery(Query query,
String datasource,
String name,
SQL sql,
int recordcount,
PageSource src,
int time)
add new query execution time |
void |
addQuery(Query query,
String datasource,
String name,
SQL sql,
int recordcount,
PageSource src,
long time)
add new query execution time |
DebugTimer |
addTimer(String label,
long time,
String template)
adds ne Timer info to debug |
DebugTrace |
addTrace(int type,
String category,
String text,
PageSource page,
String varName,
String varValue)
add new Trace to debug |
DebugTrace |
addTrace(int type,
String category,
String text,
String template,
int line,
String action,
String varName,
String varValue)
|
static boolean |
debugQueryUsage(PageContext pageContext,
Query query)
|
Struct |
getDebuggingData(PageContext pc)
returns the Debugging Info |
Struct |
getDebuggingData(PageContext pc,
boolean addAddionalInfo)
|
DebugEntryTemplate |
getEntry(PageContext pc,
PageSource source)
|
DebugEntryTemplatePart |
getEntry(PageContext pc,
PageSource source,
int startPos,
int endPos)
returns a single DebugEntry for a specific postion (startPos,endPos in the PageSource) |
DebugEntryTemplate |
getEntry(PageContext pc,
PageSource source,
String key)
|
CatchBlock[] |
getExceptions()
|
ImplicitAccess[] |
getImplicitAccesses(int scope,
String name)
|
Query |
getOutputText()
|
DebugTextFragment[] |
getOutputTextFragments()
|
List<QueryEntry> |
getQueries()
|
DebugTrace[] |
getTraces()
|
DebugTrace[] |
getTraces(PageContext pc)
|
void |
init(Config config)
|
void |
reset()
reset the debug object |
void |
setOutput(boolean output)
sets if toHTML print html output info or not |
void |
setOutputLog(DebugOutputLog outputLog)
|
void |
writeOut(PageContext pc)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DebuggerImpl()
Method Detail |
---|
public void reset()
Debugger
reset
in interface Debugger
public DebugEntryTemplate getEntry(PageContext pc, PageSource source)
getEntry
in interface Debugger
pc
- current PagContextsource
- Page Source for the entry
public DebugEntryTemplate getEntry(PageContext pc, PageSource source, String key)
getEntry
in interface Debugger
pc
- current PagContextsource
- Page Source for the entry
public DebugEntryTemplatePart getEntry(PageContext pc, PageSource source, int startPos, int endPos)
Debugger
getEntry
in interface Debugger
pc
- current PagContextsource
- Page Source for the entrystartPos
- start position in the fileendPos
- end position in the file
public void addQuery(Query query, String datasource, String name, SQL sql, int recordcount, PageSource src, int time)
DebuggerPro
addQuery
in interface Debugger
addQuery
in interface DebuggerPro
public void addQuery(Query query, String datasource, String name, SQL sql, int recordcount, PageSource src, long time)
DebuggerPro
addQuery
in interface DebuggerPro
public void setOutput(boolean output)
Debugger
setOutput
in interface Debugger
output
- The output to set.public List<QueryEntry> getQueries()
getQueries
in interface Debugger
public void writeOut(PageContext pc) throws IOException
writeOut
in interface Debugger
IOException
public Struct getDebuggingData(PageContext pc) throws DatabaseException
Debugger
getDebuggingData
in interface Debugger
DatabaseException
public Struct getDebuggingData(PageContext pc, boolean addAddionalInfo) throws DatabaseException
getDebuggingData
in interface Debugger
DatabaseException
public DebugTimer addTimer(String label, long time, String template)
Debugger
addTimer
in interface Debugger
public DebugTrace addTrace(int type, String category, String text, PageSource page, String varName, String varValue)
Debugger
addTrace
in interface Debugger
public DebugTrace addTrace(int type, String category, String text, String template, int line, String action, String varName, String varValue)
addTrace
in interface Debugger
public DebugTrace[] getTraces()
getTraces
in interface Debugger
public DebugTrace[] getTraces(PageContext pc)
getTraces
in interface DebuggerPro
public void addException(Config config, PageException pe)
addException
in interface Debugger
public CatchBlock[] getExceptions()
getExceptions
in interface Debugger
public static boolean debugQueryUsage(PageContext pageContext, Query query)
public void init(Config config)
public void addImplicitAccess(String scope, String name)
addImplicitAccess
in interface Debugger
public ImplicitAccess[] getImplicitAccesses(int scope, String name)
getImplicitAccesses
in interface Debugger
public void setOutputLog(DebugOutputLog outputLog)
public DebugTextFragment[] getOutputTextFragments()
public Query getOutputText() throws DatabaseException
DatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |