public String getDebug() { return debug.toString(); }
@Override public String debug() { final DebugString debug = new DebugString(); memento.debug(debug); return debug.toString(); }
public String debugServices() { final DebugString debug = new DebugString(); final List<Object> services = getServices(); for (final Object service : services) { debug.append(service.getClass().getName()); debug.append("\n"); } return debug.toString().replaceAll("\n", "<br>"); }
public String debugObjectStore() { final ObjectStorePersistence objectStore = getObjectStore(); final DebugString debug = new DebugString(); objectStore.debugData(debug); return debug.toString().replaceAll("\n", "<br>"); }
@Override public String debugData() { final DebugString debugString = new DebugString(); getFacetedMethod().debugData(debugString); return debugString.toString(); }
public void writeTextPage(final String section, final PrintWriter writer) throws IOException { Assert.assertNotNull(section); Assert.assertNotNull(writer); final String sectionName = section.equals("") ? "Overview" : section; writer.println(sectionName); final DebuggableWithTitle[] infos = IsisContext.debugSystem(); if (sectionName.equals("Events")) { int i = 1; for (final MonitorEvent event : requests) { writer.println(i++ + ". " + event); } // TODO add clause for request } else { for (final DebuggableWithTitle info : infos) { if (info.debugTitle().equals(sectionName)) { final DebugString debug = new DebugString(); info.debugData(debug); writer.println(debug.toString()); } } } writer.print("[Options: "); // final String[] options = target.debugSectionNames(); for (final DebuggableWithTitle info : infos) { writer.print(info.debugTitle() + " "); } // writer.println(); } /*
writer.println(debug.toString()); break;
@Override public String debugData() { final DebugString debugString = new DebugString(); debugString.indent(); debugString.indent(); getFacetedMethod().debugData(debugString); return debugString.toString(); }
@Override public String debugData() { final DebugString debugString = new DebugString(); debugString.indent(); debugString.indent(); getFacetedMethod().debugData(debugString); return debugString.toString(); }
public void takeSnapshot() { if (!LOG.isDebugEnabled()) { return; } final DebugString debug = new DebugString(); debug(debug); debug.indent(); debug.appendln(); debug(debug, getPersistenceSession()); if (getCurrentTransaction() != null) { debug(debug, getCurrentTransaction().getUpdateNotifier()); debug(debug, getCurrentTransaction().getMessageBroker()); } debugSnapshot = debug.toString(); LOG.debug(debugSnapshot); }
@Test public void debug() throws Exception { final DebugString debug = new DebugString(); options.debugData(debug); assertNotNull(debug.toString()); }
final DebugString debug = new DebugString(); context.append(debug, list); request.appendHtml(debug.toString());