I assume you were already doing something like:
>
> tasks.withType(Compile) { options.debugOptions.debugLevel =
> "source,lines,vars" }
>
>
In fact I was not doing even this. The defaults before (I assume in the
ant compiler) gave be these and I assumed they would stay the defaults
since ant, maven and even SBT all have those as defaults. I guess you
would need an option to disable debug information if you made this the
defaults.
> (Without that, you should get debug information for source and lines, but
> not for local variables.)
>
> The new Java compiler integration in m9 doesn't honor
> options.debugOptions.debugLevel yet. This is a bug. The workaround is:
>
> tasks.withType(Compile) { options.compilerArgs = ["-g:source,lines,vars"] }
>
> Without that, you should still get debug information for source and lines,
> but not for local variables.
> <http://gradleware.com>
>
That is exactly right. I currently get line and source debug information
but no var information.
Jesse