railo.runtime.debug
Class DebuggerImpl

java.lang.Object
  extended by railo.runtime.debug.DebuggerImpl
All Implemented Interfaces:
Serializable, Debugger, Dumpable

public final class DebuggerImpl
extends Object
implements Dumpable, Debugger

Class to debug the application

See Also:
Serialized Form

Constructor Summary
DebuggerImpl()
          standart Constructor of the class
 
Method Summary
 void addException(Config config, PageException pe)
           
 void addQuery(Query query, String datasource, String name, SQL sql, int recordcount, PageSource src, int time)
           
 void addQueryExecutionTime(String datasource, String name, SQL sql, int recordcount, PageSource src, int 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()
          returns the Debugging Info
 DebugEntry getEntry(PageContext pc, PageSource source)
           
 DebugEntry getEntry(PageContext pc, PageSource source, String key)
           
 CatchBlock[] getExceptions()
           
 List<QueryEntryImpl> getQueries()
           
 DebugTrace[] getTraces()
           
 void reset()
          reset the debug object
 void setOutput(boolean output)
          sets if toHTML print html output info or not
 DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
          method to print out information to a object as HTML
 void writeOut(PageContext pc)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebuggerImpl

public DebuggerImpl()
standart Constructor of the class

Method Detail

reset

public void reset()
Description copied from interface: Debugger
reset the debug object

Specified by:
reset in interface Debugger
See Also:
Debugger.reset()

getEntry

public DebugEntry getEntry(PageContext pc,
                           PageSource source)
Specified by:
getEntry in interface Debugger
Returns:
returns a single DebugEntry without a key
See Also:
Debugger.getEntry(railo.runtime.PageContext, railo.runtime.PageSource)

getEntry

public DebugEntry getEntry(PageContext pc,
                           PageSource source,
                           String key)
Specified by:
getEntry in interface Debugger
Returns:
returns a single DebugEntry witho a key
See Also:
Debugger.getEntry(railo.runtime.PageContext, railo.runtime.PageSource, java.lang.String)

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp)
Description copied from interface: Dumpable
method to print out information to a object as HTML

Specified by:
toDumpData in interface Dumpable
Returns:
HTML print out
See Also:
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)

addQueryExecutionTime

public void addQueryExecutionTime(String datasource,
                                  String name,
                                  SQL sql,
                                  int recordcount,
                                  PageSource src,
                                  int time)
Description copied from interface: Debugger
add new query execution time

Specified by:
addQueryExecutionTime in interface Debugger
See Also:
Debugger.addQueryExecutionTime(java.lang.String, java.lang.String, railo.runtime.db.SQL, int, railo.runtime.PageSource, int)

addQuery

public void addQuery(Query query,
                     String datasource,
                     String name,
                     SQL sql,
                     int recordcount,
                     PageSource src,
                     int time)

setOutput

public void setOutput(boolean output)
Description copied from interface: Debugger
sets if toHTML print html output info or not

Specified by:
setOutput in interface Debugger
Parameters:
output - The output to set.
See Also:
Debugger.setOutput(boolean)

getQueries

public List<QueryEntryImpl> getQueries()
Specified by:
getQueries in interface Debugger
Returns:
Returns the queries.
See Also:
Debugger.getQueries()

writeOut

public void writeOut(PageContext pc)
              throws IOException
Specified by:
writeOut in interface Debugger
Throws:
IOException
See Also:
Debugger.writeOut(railo.runtime.PageContext)

getDebuggingData

public Struct getDebuggingData()
Description copied from interface: Debugger
returns the Debugging Info

Specified by:
getDebuggingData in interface Debugger
Returns:
debugging Info
See Also:
Debugger.getDebuggingData()

addTimer

public DebugTimer addTimer(String label,
                           long time,
                           String template)
Description copied from interface: Debugger
adds ne Timer info to debug

Specified by:
addTimer in interface Debugger
See Also:
Debugger.addTimer(java.lang.String, long, java.lang.String)

addTrace

public DebugTrace addTrace(int type,
                           String category,
                           String text,
                           PageSource page,
                           String varName,
                           String varValue)
Description copied from interface: Debugger
add new Trace to debug

Specified by:
addTrace in interface Debugger
Returns:
debug trace object
See Also:
railo.runtime.debug.Debugger#addTrace(int, java.lang.String, java.lang.String, railo.runtime.PageSource, java.lang.String)

addTrace

public DebugTrace addTrace(int type,
                           String category,
                           String text,
                           String template,
                           int line,
                           String action,
                           String varName,
                           String varValue)

getTraces

public DebugTrace[] getTraces()
Specified by:
getTraces in interface Debugger
See Also:
Debugger.getTraces()

addException

public void addException(Config config,
                         PageException pe)

getExceptions

public CatchBlock[] getExceptions()

debugQueryUsage

public static boolean debugQueryUsage(PageContext pageContext,
                                      Query query)


Copyright © 2012 Railo