Subj : Re: [Rhino] debug symbols in compiled scripts To : netscape.public.mozilla.jseng From : Mike C. Date : Wed Jul 06 2005 05:45 am Ok I found out how to make NetBeans open my file of origin from debug information in compiled JavaScript, without JSR-045 or external JavaScript debugger.. When calling ClassCompiler.compileToClassFiles use the asp/jsp file name of origin, and in the .asp to .js translator keep the line numbers in sync. The filename passed to the compiler should be relative, not absolute, otherwise NetBeans will show it as a hidden source file. With this trick I can debug step by step and see in the watch window all variables that the JavaScript compiler is able to optimize to Java variables. I cannot set breakpoints though, and of coarse the JavaScript Objects and Arrays will show the underlying Java implementation in the variables window. But for primitive values like strings or numbers the debug information I get is enough. "Mike C." wrote in message news:XeDue.3050$Bx6.2400@newssvr13.news.prodigy.com... > Hi, > > For compiled scripts I can set breakpoints and debug step by step under MS > JVM and Visual Interdev 6, but I cannot under Netbeans and Sun JVM, either > 1.4 nor 1.5. > Is there any setting for the compiler that could help? > > Also is there any plugin for Netbeans to allow "seamless" debugging for > compiled scripts, with JavaScript variables introspection? Under the MS > debugger I can see only the Java variables. > > Third, is there any setting for the compiler to allow the debug information > to point to another file (JSP) used to generate the .js file? > > Thanks, > Mike > > .