Javac has always had <options for configuring the ...
# compiler
i
Javac has always had options for configuring the debugging information it outputs. I'm not seeing any equivalent for kotlinc (except for `-g` for the native platform). I realize ProGuard or R8 can be used to remove debugging information, but just curious, has there been any consideration of adding javac-equivalent debugging information options to kotlinc itself (for the JVM platform)? Does kotlinc always generate local variable, line number, and source file information in the class files it outputs, or just line number and source file information like javac's default, or something else? Is the `Metadata` annotation used for debugging information at all? I'm not seeing anything about these when searching here or on YouTrack.
e
LocalVariableTable, LineNumberTable, SourceFile, and SourceDebugExtension (if inline functions are used, because LineNumberTable+SourceFile are insufficient) are always generated afaik. I don't think it's documented
thank you color 1
@Metadata
is to represent non-Java features like top-level and extensions. that's also useful to know while debugging, but it's there for compiling and reflection
👍 1
i
Thank you for the info.