Gets debug string.

@param root the root
@return the debug string
5378
public String getDebugString(TrieNode root) {
    if (this == root) return "";
    String parentStr = null == getParent() ? "" : getParent().getDebugString(root);
    return parentStr + getDebugToken();
  }
229002
public static String toXml(Object root) {
		Class clazz = ClassUtil.unwrapCglib(root);
		return toXml(root, clazz, null);
	}
1216164
public static CharSequence prettyPrint(DependencyNode root)
   {
      StringBuilder sb = new StringBuilder();
      prettyPrint(root, new Predicate<DependencyNode>()
      {
         @Override
         public boolean accept(DependencyNode node)
         {
            return true;
         }
      }, sb, 0);
      return sb;
   }
279183
def debugDumpOneNode(self, output, depth):
        
        libxml2mod.xmlDebugDumpOneNode(output, self._o, depth)
724583
public static String getResourceString(String key) {
        ResourceBundle bundle = FindbugsPlugin.getDefault().getResourceBundle();
        try {
            return bundle.getString(key);
        } catch (MissingResourceException e) {
            return key;
        }
    }
448866
@Override
    public Root get(Root root) throws WIMException {
        final String METHODNAME = "get";
        Root result = null;
        if (tc.isDebugEnabled()) {
            Tr.debug(tc, METHODNAME + " " + WIMTraceHelper.trace(root));
        }
        result = profileManager.get(root);
        if (tc.isDebugEnabled()) {
            Tr.debug(tc, METHODNAME + " " + WIMTraceHelper.trace(result));
        }
        return result;
    }
297891
public String getDebugMessageAsHTML()
    {
        Throwable rootEx = getRootCause();
        if (isApplicationError(rootEx, "com.ibm.ws.webcontainer"))
        {
            String trimmedStackHtml = ApplicationErrorUtils.getTrimmedStackHtml(rootEx);
            return trimmedStackHtml;
        }
        else
            return "Error " + getErrorCode() + ": " + getMessage();   
    }
206106
protected String getPackageName(final Class<?> root) {
        return root.getName().substring(0, root.getName().length() - root.getSimpleName().length() - 1);
    }
652957
public String getString(TrieNode root) {
    if (this == root) return "";
    String parentStr = null == getParent() ? "" : getParent().getString(root);
    return parentStr + getToken();
  }
1263865
private String getListenerRootPath(Path root) {
        String listener = "";

        for (String s : mFilelistenerToPaths.values()) {
            if (root.toString().contains(s)) {
                listener = s;
            }
        }

        return listener;
    }
1117475
public static void debug(boolean debug) {
        NotificationCenter.DBG =
            NotificationEffect.DBG =
            NotificationBuilder.DBG =
            NotificationEntry.DBG =
            NotificationHandler.DBG =
            NotificationRemote.DBG =
            NotificationRemoteCallback.DBG =
            NotificationLocal.DBG =
            NotificationGlobal.DBG =
            NotificationView.DBG =
            NotificationViewCallback.DBG =
            NotificationRootView.DBG =
            NotificationBoard.DBG =
            NotificationBoardCallback.DBG =
            ViewWrapper.DBG =
            ViewSwitcherWrapper.DBG =
            ChildViewManager.DBG =
            DBG = debug;
    }
1157859
protected String extractPackageName(final Class<?> root) {
        return root.getName().substring(0, root.getName().length() - root.getSimpleName().length() - 1);
    }
812802
final String debugId(long id) {
    byte[] buf = new byte[8];
    ArrayUtil.writeLong(buf, 0, id);
    return HexUtil.toString(buf);
  }
269518
def debugDumpString(output, str):
    
    if output is not None: output.flush()
    libxml2mod.xmlDebugDumpString(output, str)
464141
public String debug()
  {
    String data = null;
    
    StringBuffer sb = new StringBuffer();
    
    sb.append("ConsumerProperties");
    sb.append("\n");
    sb.append("------------------");
    sb.append("\n");
    
    sb.append("Destination: ");
    sb.append(getJmsDestination());
    sb.append("\n");
    
    sb.append("DestType: ");
    sb.append(getDestinationType());
    sb.append("\n");
    
    sb.append("Selector: ");
    sb.append(getSelector());
    sb.append("\n");
    
    sb.append("NoLocal: ");
    sb.append(noLocal());
    sb.append("\n");
    
    sb.append("Reliablity: ");
    sb.append(getReliability());
    sb.append("\n");
    
    sb.append("ClientID: ");
    sb.append(getClientID());
    sb.append("\n");
    
    sb.append("SubName: ");
    sb.append(getSubName());
    sb.append("\n");
    
    sb.append("DurableSubHome: ");
    sb.append(getDurableSubscriptionHome());
    sb.append("\n");
    
    sb.append("ReadAhead: ");
    sb.append(readAhead());
    sb.append("\n");
    
    sb.append("UnrecoverableReliability: ");
    sb.append(getUnrecovReliability());
    sb.append("\n");
    
    sb.append("Supports Multiple: ");
    sb.append(supportsMultipleConsumers());
    sb.append("\n");
    
    if (dest instanceof Queue)
    {
      sb.append("GatherMessages: ");
      sb.append(isGatherMessages());
      sb.append("\n");
      
    }
    
    data = sb.toString();
    return data;    
   
  }
1152857
private String getDebugLog(final Object[] args) {
        final StringBuilder sb = new StringBuilder(name);
        sb.append('(');

        int i = 0;
        for (final Object param : args) {
            if (i > 0) {
                sb.append(',');
            }

            if (param == null) {
                sb.append("NULL");
            } else if (params.get(i).isSensitive()) {
                sb.append("<SENSITIVE>");
            } else {
                sb.append(param);
            }

            i++;
            if (sb.length() > TRUNCATE_DEBUG_PARAMS_MAX_LENGTH) {
                break;
            }
        }

        if (sb.length() > TRUNCATE_DEBUG_PARAMS_MAX_LENGTH) {

            // Truncate params for debug output
            return sb.substring(0, TRUNCATE_DEBUG_PARAMS_MAX_LENGTH) + TRUNCATE_DEBUG_PARAMS_ELLIPSIS + ")";
        } else {
            sb.append(')');
            return sb.toString();
        }
    }
35357
public static String stackToDebugString(Throwable e) {
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        e.printStackTrace(pw);
        pw.close();
        String text = sw.toString();
        
        // Jump past the throwable
        text = text.substring(text.indexOf("at"));
        return text;
    }