Scala Programming Language
  1. Scala Programming Language
  2. SI-6532

Classfiles in the standard library are missing Sourcefile attribute

    Details

      Description

      All classes generated from Scala sources, have a classfile attribute that tells the name of the source they originate from. Except for those compiled from Java (we have a couple, such as `BoxesRunTime`). The end-result is that you can't really debug or set breakpoints in these files.

      By default, `javac` sets this attribute for all classfiles it generates.

      I guess this is unintentional, but it is pretty annoying in the debugger.

        Activity

        Hide
        Paul Phillips added a comment -

        Adding debug="true" to the various javac tasks in build.xml will remedy this.

        Show
        Paul Phillips added a comment - Adding debug="true" to the various javac tasks in build.xml will remedy this.
        Hide
        Miguel Garcia added a comment -

        For the ASM library I'm using:

        debug="true" debuglevel="lines,vars,source"
        
        Show
        Miguel Garcia added a comment - For the ASM library I'm using: debug="true" debuglevel="lines,vars,source"
        Hide
        Paul Phillips added a comment -

        https://github.com/scala/scala/pull/2471

        FYI "lines,vars,source" is the default.

        Show
        Paul Phillips added a comment - https://github.com/scala/scala/pull/2471 FYI "lines,vars,source" is the default.
        Hide
        Paul Phillips added a comment -

        132a732

        Show
        Paul Phillips added a comment - 132a732

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Iulian Dragos
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development