Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classfiles in the standard library are missing Sourcefile attribute #6532

Closed
scabug opened this issue Oct 17, 2012 · 5 comments
Closed

Classfiles in the standard library are missing Sourcefile attribute #6532

scabug opened this issue Oct 17, 2012 · 5 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Oct 17, 2012

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.

@scabug
Copy link
Author

scabug commented Oct 17, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6532?orig=1
Reporter: @dragos
Affected Versions: 2.9.2, 2.10.0

@scabug
Copy link
Author

scabug commented Oct 17, 2012

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

@scabug
Copy link
Author

scabug commented Oct 17, 2012

@magarciaEPFL said:
For the ASM library I'm using:

debug="true" debuglevel="lines,vars,source"

@scabug
Copy link
Author

scabug commented Apr 30, 2013

@paulp said:
scala/scala#2471

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

@scabug
Copy link
Author

scabug commented May 17, 2013

@paulp said:
132a732

@scabug scabug closed this as completed May 17, 2013
@scabug scabug added the build label Apr 7, 2017
@scabug scabug added this to the 2.10.2-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants