Subj : Re: Rhino debugger one line off To : netscape.public.mozilla.jseng From : Attila Szegedi Date : Tue Sep 06 2005 06:31 pm When you're creating the Script object with Context.compileString/compileReader, try using 1 instead of 0 for the first line number. Attila. -- home: http://www.szegedi.org weblog: http://www.jroller.com/page/aszegedi On Tue, 06 Sep 2005 16:32:59 +0200, Jon Brisbin wrote: > Now that I've got my Rhino debugger working inside my servlet, my > JavaScript code, which most often comes from the CDATA section of an XML > element, is looking like it's one line off when displayed in the > debugger. The little yellow arrow follows the source code properly, but > one line above the actual line being evaluated. It doesn't do this when > I run it from the command line, so I assume that I'm getting something > hosed while I'm preparing the source code. > > Does anyone have suggestions as to where I start looking for the > problem? BTW- I'm doing a trim() on the string of JavaScript before > sending it into Context to be evaluated... > > Thanks! > > Jon Brisbin > NPC International, Inc. .