[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.technology.ldt] Re: JSR 45 and support for non-Java class files
|
- From: Per Bothner <per@xxxxxxxxxxx>
- Date: Thu, 24 Mar 2005 15:59:50 -0800
- Newsgroups: eclipse.technology.ldt
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020
Per Bothner wrote:
It does seem to require the SourceDebugExtension to contain the
fully-qualified filename. I haven't tried pathnames relative to the
Java root or project root; that would be preferable.
It does seem to work ok with "root-relative" filenames. I.e. if class file
kawa/lib/vectors.class contains:
Attribute "SourceFile", length:2, #510="strings.scm"
Attribute "SourceDebugExtension", length:90
SMAP
strings.scm
Scheme
*S Scheme
*F
+ 1 strings.scm
kawa/lib/strings.scm
*L
1#1,122:1
*E
In that case Eclipse can map the stack trace to the source file.
Here is a nice screenshot:
http://per.bothner.com/Eclipse-Kawa-1.png
Note the vectors.scm line in the track-trace. I clicked on it,
and it brought up the nice syntax-colored source code.
Note is also the local variable 'vec' in the Variables display,
with the contents printed (using toString).
Stepping works too. What doesn't work is setting a breakpoint
from the Scheme window, but this is looking promising.
--
--Per Bothner
per@xxxxxxxxxxx http://per.bothner.com/