railo.runtime.debug
Interface Debugger

All Superinterfaces:
Dumpable, Serializable
All Known Implementing Classes:
DebuggerImpl

public interface Debugger
extends Dumpable

debugger interface


Method Summary
 void addQueryExecutionTime(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
 Struct getDebuggingData()
          returns the Debugging Info
 DebugEntry getEntry(PageContext pc, PageSource source)
           
 DebugEntry getEntry(PageContext pc, PageSource source, String key)
           
 List 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)
           
 
Methods inherited from interface railo.runtime.dump.Dumpable
toDumpData
 

Method Detail

reset

void reset()
reset the debug object


getEntry

DebugEntry getEntry(PageContext pc,
                    PageSource source)
Parameters:
source -
Returns:
returns a single DebugEntry without a key

getEntry

DebugEntry getEntry(PageContext pc,
                    PageSource source,
                    String key)
Parameters:
source -
key -
Returns:
returns a single DebugEntry witho a key

addQueryExecutionTime

void addQueryExecutionTime(String datasource,
                           String name,
                           SQL sql,
                           int recordcount,
                           PageSource src,
                           int time)
add new query execution time

Parameters:
datasource -
name -
sql -
recordcount -
src -
time -

setOutput

void setOutput(boolean output)
sets if toHTML print html output info or not

Parameters:
output - The output to set.

getQueries

List getQueries()
Returns:
Returns the queries.

writeOut

void writeOut(PageContext pc)
              throws IOException
Parameters:
pc -
Throws:
IOException

getDebuggingData

Struct getDebuggingData()
returns the Debugging Info

Returns:
debugging Info

addTimer

DebugTimer addTimer(String label,
                    long exe,
                    String template)
adds ne Timer info to debug

Parameters:
label -
exe -

addTrace

DebugTrace addTrace(int type,
                    String category,
                    String text,
                    PageSource page,
                    String varName,
                    String varValue)
add new Trace to debug

Parameters:
type -
category -
text -
page -
varName -
varValue -
Returns:
debug trace object

getTraces

DebugTrace[] getTraces()


Copyright © 2012 Railo