Debug
choose
to select the debug targetGroovy
/JavaScript
/General
.By default, the selected context for debugging is 'class'. If you need to debug a different context, you can reassign 'it' in the script header. For example, to debug a 'method', use the following script
//Switch Context, now 'it' is the first method in the class
it = it.methods()[0]
//Now you can try to write a script with 'method'
def separator = tool.repeat("-", 35) + "\n\n"
def sb = ""
sb += "debug `tool`:\n"
sb += tool.debug(tool)
sb += separator
sb += "debug `it`:\n"
sb += tool.debug(it)