Setting breakpoints in foreign sources [message #1750322] |
Mon, 19 December 2016 23:08 |
Dave Brosius Messages: 36 Registered: July 2009 |
Member |
|
|
hi folks, was wondering how eclipse decides what 'line' a breakpoint was put on. I was hoping it would naively take whatever line you set the break point on, but that appears not to be the case.
It appears that it tries to actually parse the source file, rather than just look up the byte code offset based on the linenumbertable attribute of the class/methods.
in my case, my 'source' isn't java. and certainly not something eclipse understands
I am creating javap-like source files, who's lines map to byte code offsets as appropriate in the class's linenumber table.
However, when i try to set a breakpoint in my 'source' file, eclipse sets the breakpoint at the end of the file, and so it is not a proper breakpoint.
My project in question is
https://github.com/mebigfatguy/baremetal4j
Notice i'm creating files with a .java extension, which i suppose is a no-no, however it appears eclipse doesn't respect the ability to set breakpoints in non-java files.
Anyone have any ideas?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03032 seconds