arthas-watch
Method invoke data observation. tldr-pages
On several platforms
Several platforms
Observe the first parameter and return value of method, and expand the nested attributes of the object to 4 levels
watch class_pattern method_pattern '{ params[0],returnObj }' -x 4Identify-xExec command directly (without "sh -c") toyboxWhen the value of the first parameter of the method is 5, output the second parameter and return value, and expand the object 4 layers
watch class_pattern method_pattern '{ params[1],returnObj }' '"5".equals(params[0])' -x 4Identify-xExec command directly (without "sh -c") toyboxWhen the method returns or an exception occurs, observe the count property of the second parameter
watch class_pattern method_pattern '{ params[1].count }' -e -sIdentify-eExit on error toybox