William Brogden wrote:
>
> Angus M wrote:
> >
> > When I dump a stack trace the the brower or to the tomcat log I can seem
> > to see the line numbers in the trace. How do I turn this on?
> >
> > build.xml snippet:
> > <target name="compile" depends="prepare">
> > <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
> > classpath="${deploy.home}/WEB-INF/classes"
> > debug="on" optimize="off" deprecation="off"/>
> > <copy todir="${deploy.home}/WEB-INF/classes">
> > <fileset dir="src" includes="**/*.properties"/>
> > </copy>
> > </target>
> >
> > Stack Trace:
> > java.lang.NullPointerException
> > at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code)
> > at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code)
>
> I can think of two possible reasons you are seeing Compiled Code
> instead of line numbers.
>
> 1) you need to compile with the option that leaves line number
> information in the .class file. See the compiler options in the
> tooldocs.
Um, did you read the build.xml snippet? debug="on" Or is there some
other switch?
>
> 2) you need to run without the JIT compiler because it discards
> line number information. Try setting the environment variable
>
> set JAVA_COMPILER=NONE
>
Which file should I put this in so that I don't have to worry about it
being sent for and auto-startup by the server on reboot?
--Angus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]