<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br class="webkit-block-placeholder"></div>Gilad, this is somewhat complicated, but very useful. The secret here is to use the Tomcat remote debugging options. <div><br class="webkit-block-placeholder"></div><div>Stop tomcat, then</div><div>$ cd $LPS_HOME </div><div>$ export DEBUG_TOMCAT=true</div><div>$ ant tomcat.start </div><div><br class="webkit-block-placeholder"></div><div>This runs tomcat with these options:</div><div><div>-Xdebug -Xint -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999</div><div><br class="webkit-block-placeholder"></div><div>I've only done the next step in IntelliJ IDEA, but you can probably do it in Eclipse too -- find UI that talks about "connect to tomcat servlet" and enter options based on the options specified above. </div><div><br class="webkit-block-placeholder"></div><div>You should build the server with lots of debugging information compiled in, and help Eclipse find the source. That is a difficult task, and I haven't done it in a year.</div><div><br class="webkit-block-placeholder"></div><div>Hope this helps. </div><div><br class="webkit-block-placeholder"></div><div>-ben </div><div><br class="webkit-block-placeholder"></div><div><br></div><div><br class="webkit-block-placeholder"></div><div><div><br><div><div>On Dec 27, 2007, at 4:23 PM, Gilad Parann-Nissany wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><p>Hi</p><p>Sorry if this is a newbie question. I am new to the topic.</p><p>I'm in an existing OL app, which has the setup of Java classes on the tomcat being called by xml-RPC from the (flash 9) OL client. The Java classes are on the same Tomcat instance as the LPS servlet.</p><p>What I'm trying to achieve: set a breakpoint and line-by-line debugging (in Eclipse if possible) of the Java classes (that are running in Tomcat) when a call comes in from the client. Note I am not trying to debug the lzx code but rather the server-side java code.</p><p>I've tried the Eclipse WTP and tried setting up Tomcat to debug through that, which usually works; but starting that up together with the LPS servlets did not work for me.</p><p>I am guessing there is some easy way - I just missed it. Any input?</p><p>Thanks</p><p>Gilad</p><p><br><br>Gilad Parann-Nissany<br></p></span></blockquote></div><br></div></div></div></body></html>