CmdID

CmdID / Commands

arthas-watch

Method invoke data observation. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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") toybox

When 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") toybox

When 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