Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Add `groovy.log.classgen.stacktrace.max.depth` option to control max depth of stacktrace(default value is 0).
For example, if -Dgroovy.log.classgen=true -Dgroovy.log.classgen.stacktrace.max.depth=3 is passed into JVM, the bytecode will be attached with some stacktrace tracking where the bytecode generated.
bytecode snippet:
// org.codehaus.groovy.classgen.AsmClassGenerator#onLineNumber:2215 // org.codehaus.groovy.classgen.asm.StatementWriter#writeReturn:593 // org.codehaus.groovy.classgen.AsmClassGenerator#visitReturnStatement:677 LINENUMBER 13 L1