Package org.gradle.api.tasks.compile
Class DebugOptions
java.lang.Object
org.gradle.api.tasks.compile.DebugOptions
- All Implemented Interfaces:
Serializable
Debug options for Java compilation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGet a comma-separated list of debug information to be generated during compilation.voidsetDebugLevel(@Nullable String debugLevel) Sets which debug information is to be generated during compilation.
-
Constructor Details
-
DebugOptions
public DebugOptions()
-
-
Method Details
-
getDebugLevel
Get a comma-separated list of debug information to be generated during compilation. The list may contain any of the following keywords (without spaces in between):source- Source file debugging information
lines- Line number debugging information
vars- Local variable debugging information
Alternatively, a value of
nonemeans debug information will not be generated.When the value is null, only source and line debugging information will be generated.
-
setDebugLevel
Sets which debug information is to be generated during compilation. The value must be a comma-separated list containing any of the following keywords (without spaces in between):source- Source file debugging information
lines- Line number debugging information
vars- Local variable debugging information
For example
source,lines,varsis a valid value.Alternatively setting the value to
nonewill disable debug information generation.Setting this value to null will reset the property to its default value of only generating line and source debug information.
-