[ https://issues.apache.org/jira/browse/GROOVY-8500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun updated GROOVY-8500: ------------------------------- 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:* {code:java} // 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 {code} was: 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 following bytecode generated. *bytecode snippet:* {code:java} // 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 {code} > Support logging the stacktrace of bytecode generation > ----------------------------------------------------- > > Key: GROOVY-8500 > URL: https://issues.apache.org/jira/browse/GROOVY-8500 > Project: Groovy > Issue Type: New Feature > Reporter: Daniel Sun > Assignee: Daniel Sun > Priority: Major > Fix For: 3.0.0-alpha-2, 2.5.0-rc-1, 2.6.0-alpha-4 > > > 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:* > {code:java} > // > 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 > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)