<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On Dec 27, 2007, at 6:19 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>Thanks Ben. I happen to be testing on Windows (with IE in the mix). How do these instructions change for windows?</p></span></blockquote><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>I notice that "lps/Server/tomcat-5.0.2.4/bin/" contains the main BAT files for starting up, especially "catalina.bat" seems relevant and can accept jaca opts as a parameter. Am I on the right track? How should I set it?</p></span></blockquote><div>Yes, it sounds like you're on the right track. In one of the batch files that launches tomcat, (I'm not sure which one does it on windows) add these to the java options that are already being passed in: </div></div><div><br class="webkit-block-placeholder"></div><div><blockquote type="cite"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; ">-Xdebug -Xint -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999</span></blockquote><br><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>Thanks</p><p>Gilad</p><p><br><br>Gilad Parann-Nissany<br><br>----- Original Message -----<br>From: "Benjamin Shine" &lt;<a href="mailto:ben@laszlosystems.com">ben@laszlosystems.com</a>&gt;<br>To: "Gilad Parann-Nissany" &lt;<a href="mailto:gilad.parann.nissany@g.ho.st">gilad.parann.nissany@g.ho.st</a>&gt;<br>Cc: <a href="mailto:Laszlo-user@openlaszlo.org">Laszlo-user@openlaszlo.org</a><br>Sent: Friday, December 28, 2007 2:47:24 AM (GMT+0200) Auto-Detected<br>Subject: Re: [Laszlo-user] Debugging java on tomcat with openlaszlo as front-end<br><br></p><div 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><span class="Apple-style-span" style="word-spacing: 0px; font: normal normal normal 13px/normal Verdana; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -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: 0px; "><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></div></span><br class="Apple-interchange-newline"></blockquote></div><br></body></html>