<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_09) on Tue Jan 08 20:46:01 GMT 2008 -->
+<!-- Generated by javadoc (build 1.5.0_09) on Mon May 05 21:42:42 BST 2008 -->
<TITLE>
-Debug (leJOS NXT API documentation)
+DebugMonitor (leJOS NXT API documentation)
</TITLE>
-<META NAME="keywords" CONTENT="lejos.nxt.comm.Debug class">
+<META NAME="keywords" CONTENT="lejos.nxt.debug.DebugMonitor class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
- parent.document.title="Debug (leJOS NXT API documentation)";
+ parent.document.title="DebugMonitor (leJOS NXT API documentation)";
}
</SCRIPT>
<NOSCRIPT>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html" title="class in lejos.nxt.comm"><B>PREV CLASS</B></A>
- <A HREF="../../../lejos/nxt/comm/DeviceInfo.html" title="class in lejos.nxt.comm"><B>NEXT CLASS</B></A></FONT></TD>
+ <A HREF="../../../lejos/nxt/debug/DebugInterface.html" title="class in lejos.nxt.debug"><B>PREV CLASS</B></A>
+ <A HREF="../../../lejos/nxt/debug/DebugObject.html" title="class in lejos.nxt.debug"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../index.html?lejos/nxt/comm/Debug.html" target="_top"><B>FRAMES</B></A>
- <A HREF="Debug.html" target="_top"><B>NO FRAMES</B></A>
+ <A HREF="../../../index.html?lejos/nxt/debug/DebugMonitor.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="DebugMonitor.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
-lejos.nxt.comm</FONT>
+lejos.nxt.debug</FONT>
<BR>
-Class Debug</H2>
+Class DebugMonitor</H2>
<PRE>
<A HREF="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
- <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>lejos.nxt.comm.Debug</B>
+ <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>lejos.nxt.debug.DebugMonitor</B>
</PRE>
<HR>
<DL>
-<DT><PRE>public class <B>Debug</B><DT>extends <A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
+<DT><PRE>public class <B>DebugMonitor</B><DT>extends <A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
</PRE>
<P>
-This class provides a simple way of sending debug output for viewing on a
- PC. The output is transmitted via the nxt USB connection. If open is not
- called or if the connection to the PC is timed out, then the debug output
- is dicarded.
+Simple debug monitor that can be run alongside and nxj program. This class
+ catches unhandled excpetions and user interrupts (accept + escape key), it
+ displays information about the event (stack trace etc.). The user is then
+ abble to either perform a soft reset (Escape), a hard reset (Escape + Accept),
+ or continue running the program (any other key). All output is directed via
+ System.err.
<P>
<P>
+<DL>
+<DT><B>Author:</B></DT>
+ <DD>andy</DD>
+</DL>
<HR>
<P>
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#Debug()">Debug</A></B>()</CODE>
+<TD><CODE><B><A HREF="../../../lejos/nxt/debug/DebugMonitor.html#DebugMonitor()">DebugMonitor</A></B>()</CODE>
<BR>
</TD>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#close()">close</A></B>()</CODE>
-
-<BR>
- </TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#open()">open</A></B>()</CODE>
-
-<BR>
- </TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#open(int)">open</A></B>(int timeout)</CODE>
-
-<BR>
- </TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#out(java.lang.String)">out</A></B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A> s)</CODE>
+<TD><CODE><B><A HREF="../../../lejos/nxt/debug/DebugMonitor.html#main(java.lang.String[])">main</A></B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>[] args)</CODE>
<BR>
</TD>
</TR>
</TABLE>
-<A NAME="Debug()"><!-- --></A><H3>
-Debug</H3>
+<A NAME="DebugMonitor()"><!-- --></A><H3>
+DebugMonitor</H3>
<PRE>
-public <B>Debug</B>()</PRE>
+public <B>DebugMonitor</B>()</PRE>
<DL>
</DL>
</TR>
</TABLE>
-<A NAME="open(int)"><!-- --></A><H3>
-open</H3>
+<A NAME="main(java.lang.String[])"><!-- --></A><H3>
+main</H3>
<PRE>
-public static void <B>open</B>(int timeout)</PRE>
+public static void <B>main</B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>[] args)
+ throws <A HREF="../../../java/lang/Exception.html" title="class in java.lang">Exception</A></PRE>
<DL>
<DD><DL>
-</DL>
-</DD>
-</DL>
-<HR>
-
-<A NAME="open()"><!-- --></A><H3>
-open</H3>
-<PRE>
-public static void <B>open</B>()</PRE>
-<DL>
-<DD><DL>
-</DL>
-</DD>
-</DL>
-<HR>
-<A NAME="out(java.lang.String)"><!-- --></A><H3>
-out</H3>
-<PRE>
-public static void <B>out</B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A> s)</PRE>
-<DL>
-<DD><DL>
-</DL>
-</DD>
-</DL>
-<HR>
-
-<A NAME="close()"><!-- --></A><H3>
-close</H3>
-<PRE>
-public static void <B>close</B>()</PRE>
-<DL>
-<DD><DL>
-</DL>
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="../../../java/lang/Exception.html" title="class in java.lang">Exception</A></CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html" title="class in lejos.nxt.comm"><B>PREV CLASS</B></A>
- <A HREF="../../../lejos/nxt/comm/DeviceInfo.html" title="class in lejos.nxt.comm"><B>NEXT CLASS</B></A></FONT></TD>
+ <A HREF="../../../lejos/nxt/debug/DebugInterface.html" title="class in lejos.nxt.debug"><B>PREV CLASS</B></A>
+ <A HREF="../../../lejos/nxt/debug/DebugObject.html" title="class in lejos.nxt.debug"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../index.html?lejos/nxt/comm/Debug.html" target="_top"><B>FRAMES</B></A>
- <A HREF="Debug.html" target="_top"><B>NO FRAMES</B></A>
+ <A HREF="../../../index.html?lejos/nxt/debug/DebugMonitor.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="DebugMonitor.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {