blob: 8670b9e5aacbd4008a2a965d2618e7094f529814 [file] [log] [blame]
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../../..//default_style.css" type="text/css">
<link rel="stylesheet" href="../../../../..//webtools/wtp.css" type="text/css">
<title>JSP Breakpoint Test</title>
</head>
<body>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<col width="16">
<col width="*">
<tbody>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">JSP Breakpoints</font></b></td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../..//images/Adarrow.gif"></td><td><b>Prerequisites</b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
must have an Apache Tomcat server installed
</p>
</td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../..//images/Adarrow.gif"></td><td><b>Create a server</b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
- Window &gt; Preferences &gt; Server &gt; Installed Runtimes
<br> - Add...
<br> - choose the appropriate version of Apache Tomcat
<br> - Point to your appropriate Tomcat directory
</p>
</td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../..//images/Adarrow.gif"></td><td><b>Create a J2EE module</b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
- File &gt; New &gt; Project
<br> - Web &gt; J2EE Web Module
<br> - use the Tomcat server you just added as the Target server
</p>
</td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../..//images/Adarrow.gif"></td><td><b>Create a JSP</b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
- in the WebContent folder of your project
<br> - create breakpoint-test.jsp file with these contents
<br>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;breakpoint test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;%
String test = "test";
for (int i = 0; i &lt; 5; i++) {
out.println(test);
}
%&gt;
&lt;p&gt;a paragraph&lt;/p&gt;
&lt;%
out.println("another");
// some comments
out.println("block");
out.println("of");
out.println("code");
// comment at the end %&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
</p>
</td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../..//images/Adarrow.gif"></td><td><b>Add some breakpoints</b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
in scriplet sections of breakpoint-test.jsp:
<br> - double click in the left hand ruler in some of the scriplet sections to add breakpoints.
<br> - or right click in the ruler and select "toggle breakpoints"
</p>
</td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../..//images/Adarrow.gif"></td><td><b>Add the server</b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
open the servers view:
<br> - Window &gt; Show View &gt; Other...
<br> - Server &gt; Servers
<br> - right click (in the servers view) &gt; New &gt; server
<br> - select the appropriate variety of Tomcat server
<br> - add your J2EE module to this server
</p>
</td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../..//images/Adarrow.gif"></td><td><b>Debug on server</b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
right click on the breakpoint-test.jsp file in the package explorer
<br> - select "Debug on Server"
<br> - the server should start, and you should be switched to
the debug perspective
<br> - you should be able to step through the breakpoints
<br> - you should be able to reload the page to start debugging
<br> - try adding/removing breakpoints, reloading the page
<br> - you should be able to see/enable/disable the breakpoints in the brekpoints view
<br>
<br>
</p>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Source Editing Test Plans</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
<a href="../../../../wst/components/sse/M4/milestone_test_plan.html">org.eclipse.wst.sse</a>
<br>
<a href="../../../../wst/components/xml/M4/milestone_test_plan.html">org.eclipse.wst.xml</a>
<br>
<a href="../../../../wst/components/html/M4/milestone_test_plan.html">org.eclipse.wst.html</a>
<br>
<a href="../../../../wst/components/css/M4/milestone_test_plan.html">org.eclipse.wst.css</a>
<br>
<a href="../../../../wst/components/dtd/M4/milestone_test_plan.html">org.eclipse.wst.dtd</a>
<br>
<a href="../../../../wst/components/javascript/M4/milestone_test_plan.html">org.eclipse.wst.javascript</a>
<br>
<a href="../../../../jst/components/jsp/M4/milestone_test_plan.html">org.eclipse.jst.jsp</a>
</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>