public interface Debugger
Modifier and Type | Method and Description |
---|---|
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
|
DebugTimer |
addTimer(String label,
long exe,
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) |
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) |
List<QueryEntry> |
getQueries() |
DebugTrace[] |
getTraces() |
void |
reset()
reset the debug object
|
void |
setOutput(boolean output)
sets if toHTML print html output info or not
|
void |
writeOut(PageContext pc) |
void reset()
DebugEntryTemplate getEntry(PageContext pc, PageSource source)
pc
- current PagContextsource
- Page Source for the entryDebugEntryTemplate getEntry(PageContext pc, PageSource source, String key)
pc
- current PagContextsource
- Page Source for the entrykey
- DebugEntryTemplatePart getEntry(PageContext pc, PageSource source, int startPos, int endPos)
pc
- current PagContextsource
- Page Source for the entrystartPos
- start position in the fileendPos
- end position in the filevoid addQuery(Query query, String datasource, String name, SQL sql, int recordcount, PageSource src, int time)
query
- datasource
- name
- sql
- recordcount
- src
- time
- void setOutput(boolean output)
output
- The output to set.List<QueryEntry> getQueries()
void writeOut(PageContext pc) throws IOException
pc
- IOException
Struct getDebuggingData(PageContext pc) throws PageException
PageException
Struct getDebuggingData(PageContext pc, boolean addAddionalInfo) throws PageException
PageException
DebugTimer addTimer(String label, long exe, String template)
label
- exe
- DebugTrace addTrace(int type, String category, String text, PageSource page, String varName, String varValue)
type
- category
- text
- page
- varName
- varValue
- DebugTrace addTrace(int type, String category, String text, String template, int line, String action, String varName, String varValue)
DebugTrace[] getTraces()
void addException(Config config, PageException pe)
CatchBlock[] getExceptions()
void addImplicitAccess(String scope, String name)
ImplicitAccess[] getImplicitAccesses(int scope, String name)
Copyright © 2015 Lucee