public class DebugUtil extends Object
Constructor and Description |
---|
DebugUtil() |
Modifier and Type | Method and Description |
---|---|
protected void |
init() |
static void |
printList(List list,
Logger out) |
static void |
printState(Map state,
Logger out) |
static void |
printTree(Object[] root,
Logger out) |
static void |
printTree(Object[] root,
Writer out) |
static String |
printTree(UIComponent root) |
static void |
printTree(UIComponent root,
Logger logger,
Level level) |
static void |
printTree(UIComponent root,
PrintStream out)
Output of printTree() to a PrintStream.
|
static void |
printTree(UIComponent root,
Writer out) |
static void |
setKeepWaiting(boolean keepWaiting) |
static void |
simplePrintTree(UIComponent root,
String duplicateId,
Writer out) |
static void |
waitForDebugger()
Usage:
|
protected void init()
public static void setKeepWaiting(boolean keepWaiting)
public static void waitForDebugger()
Place a call to this method in the earliest possible entry point of your servlet app. It will cause the app to enter into an infinite loop, sleeping until the static var keepWaiting is set to false. The idea is that you attach your debugger to the servlet, then, set a breakpont in this method. When it is hit, you use the debugger to set the keepWaiting class var to false.
public static String printTree(UIComponent root)
root
- the root componentpublic static void printTree(UIComponent root, PrintStream out)
root
- the root componentout
- the PrintStream to write topublic static void printTree(UIComponent root, Logger logger, Level level)
public static void printTree(UIComponent root, Writer out)
public static void simplePrintTree(UIComponent root, String duplicateId, Writer out)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.