line numbers for debugging

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

line numbers for debugging

rvjansen
hi list,

does anyone know why the linenumbers in the class files are correct for
the java source, but refer to the netrexx source files? and more
importantly, how to get this right? some of our developers are using
eclipse and are somewhat surprised that they are taken to the netrexx
source, but with the wrong line numbers. i told them to use trace, but to
no avail.

rene.

Reply | Threaded
Open this post in threaded view
|

line numbers for debugging

Mike Cowlishaw-2
> does anyone know why the linenumbers in the class files are correct for
> the java source, but refer to the netrexx source files? and more
> importantly, how to get this right? some of our developers are using
> eclipse and are somewhat surprised that they are taken to the netrexx
> source, but with the wrong line numbers. i told them to use trace, but
to
> no avail.

The line numbers in the class files are set by javac, which only sees the
.java source.  The line numbers in the Java source should match the
NetRexx line numbers from which they are derived (unless the format option
is specified, of course), hence any error (for example) should refer to
the correct line number in the NetRexx source.

i.e., the line numbers should not be wrong.

mfc
Reply | Threaded
Open this post in threaded view
|

line numbers for debugging

rvjansen
In reply to this post by rvjansen
to reply to my own message: some examination by a team member made  
clear that it must be the -comments option that throws off the  
linenumbers

On 1-nov-2006, at 11:05, Ren? Jansen wrote:

> hi list,
>
> does anyone know why the linenumbers in the class files are correct  
> for
> the java source, but refer to the netrexx source files? and more
> importantly, how to get this right? some of our developers are using
> eclipse and are somewhat surprised that they are taken to the netrexx
> source, but with the wrong line numbers. i told them to use trace,  
> but to
> no avail.
>
> rene.
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>