blob: 43db6da55992d396213a8855a3ac4e9ea76dea40 [file] [log] [blame]
Richard S. Hall85bafab2009-07-13 13:25:46 +00001<html>
2<header>
3<title>Debugging A Composite</title>
4</header>
5<body bgcolor="#ffffff">
6<table width="100%">
7 <tr>
8 <td valign="bottom"><h1>Debugging A Composite</h1></td><td align="right"><img src="../images/sigil.gif" /></td>
9 </tr>
10 <tr><td colspan="2">
11<p>In order to debug composite applications using the Newton Eclipse
12 plugin, use the runtime configuration you created in above, and start it
13 using a debug session. This will launch a newton container as a separate
14 process to the Eclipse IDE environment but which can be controlled from
15 the IDE</p>
16
17
18<div align="center">
19<img class="figure" alt="Debug" src="my-images/debug.png"></div>
20
21<p>Install your composite into this container using the Newton context
22 menu in the package view as documented above. In this example we have
23 installed the gui.composite component from the fractal render demo into
24 a Newton debug container.</p>
25
26
27<div align="center">
28<img class="figure" alt="Fractal GUI Debug" src="my-images/demo-gui.png"></div>
29
30<p>You can now add break points within your code to allow you to get a
31 better idea of what is going on within your application. In this example
32 we have added a break point to the FractalViewFrame of the fractal
33 render demo to break out into an interactive debug session when any of
34 the buttons <em>draw</em>, <em>save</em>, <em>cancel</em> are pressed on
35 the gui window.</p>
36
37
38<div align="center">
39<img class="figure" alt="Add a breakpoint" src="my-images/breakpoint.png"></div>
40
41<p>You can then inspect variable values in top-right-hand corner as per
42 normal debugging in the Eclipse IDE.</p>
43
44<div align="center">
45<img class="figure" alt="Debug breakpoint" src="my-images/debug-breakpoint.png"></div>
46<div id="footer">
47<table cellpadding="4" cellspacing="0" border="0">
48<tr>
49<td><a href="http://www.paremus.com/License">
50 Copyright &copy; 2003-2007 Paremus Limited.</a>
51 All rights reserved.
52 <br>
53
54<script type="text/javascript" language="JavaScript"><!--
55 document.write(" - "+"Last Published: " + document.lastModified);
56 // --></script>
57<div id="feedback">
58 Send feedback about the website to:
59 <a id="feedbackto" href="mailto:webmaster@paremus.com?subject=Feedback%C2%A0common/eclipse/UsingEclipsePlugin.html">webmaster@paremus.com</a>
60</div>
61</td><td nowrap class="footerLogos"></td>
62</tr>
63</table>
64</td></tr></table>
65</body>
66</html>