<html><head><style type='text/css'>body { font-family: 'Verdana'; font-size: 10pt; color: #000000}</style></head><body><P>Thanks Ben. I happen to be testing on Windows (with IE in the mix). How do these instructions change for windows?</P>
<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>
<P>Thanks</P>
<P>Gilad</P>
<P><BR><BR>Gilad&nbsp;Parann-Nissany<BR><BR>----- Original Message -----<BR>From: "Benjamin Shine" &lt;ben@laszlosystems.com&gt;<BR>To: "Gilad Parann-Nissany" &lt;gilad.parann.nissany@g.ho.st&gt;<BR>Cc: Laszlo-user@openlaszlo.org<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.&nbsp;
<DIV><BR class=webkit-block-placeholder></DIV>
<DIV>Stop tomcat, then</DIV>
<DIV>$ cd $LPS_HOME&nbsp;</DIV>
<DIV>$ export DEBUG_TOMCAT=true</DIV>
<DIV>$ ant tomcat.start&nbsp;</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.&nbsp;</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.&nbsp;</DIV>
<DIV><BR class=webkit-block-placeholder></DIV>
<DIV>-ben&nbsp;</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: 13px 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: 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&nbsp;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&nbsp;tried the Eclipse WTP and tried setting up Tomcat to debug through that, which usually works; but starting that up together with the LPS&nbsp;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&nbsp;Parann-Nissany<BR></P></SPAN></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></DIV></body></html>