'no line number' dialog when debugging object without companion class
This a placeholder for this issue. It is unlikely to be a problem in Scala IDE
When launching the following object in debug mode, Eclipse open a dialog stating that the class file does not contains any line number information (debug information).
And this is true.
The companion class contains only the forwarder for the main method, and it has not line numbers for this method as it is a generated one.
The different actors in this chaine (compiler, vm, debugger) seems to do what is spec'ed, but the result is still this state.
I had a look through the specs and I didn't see how this could be handle differently.
When launching the following object in debug mode, Eclipse open a dialog stating that the class file does not contains any line number information (debug information).
package test
object NoDebugInfo {
def main(args: Array[String]) {
println(); // breakpoint here
}
}
And this is true.
The companion class contains only the forwarder for the main method, and it has not line numbers for this method as it is a generated one.
The different actors in this chaine (compiler, vm, debugger) seems to do what is spec'ed, but the result is still this state.
I had a look through the specs and I didn't see how this could be handle differently.
Leave a comment
Not an issue in the new debugger.