Aladdin - Scala Bugtracking
[#1095] project: compiler priority: high category: bug
submitter assigned to status date submitted
Sean Gilles fixed 2007-05-10 11:53:55.0
subject build still builds library without var debug symbols!!!!
code
what happened
The ant 5cr1p7-haX0R builds everything with debuginfo="line", which sucks when you actually debug...anything. We can't\
 release the distribution like this.
what expected The build should build with "vars" by default. I keep trying to fix this in Scalac.scala, but nothing sticks, and i have no idea where my stuff is being ignored. The legacy of having so many senseless debug options comes from javac (from 1.0) and C compilers before it. We can do better than this. So here is my suggestion: (a) get rid of the debuginfo flag completely, always generate maximum symbols. Space isn't a good excuse for not generating symbols, and if users want obfuscation, they can use better tools for that. If (a) is too radical, then (b) simplify the flag to on or off. I don't understand why users would want some information and not others. It sucks the way it works now, line numbers are present but variables are not.
[back to overview]
Changes of this bug report
Gilles  edited on  2007-05-10 15:40:29.0
Fixed in rev. 10987 by having the Scalac Ant task use the compiler's default settings (including “debuginfo=vars”) instead of its own.