diff --git a/README.html b/README.html index ab7bea142..417b40195 100644 --- a/README.html +++ b/README.html @@ -8,7 +8,7 @@ -
exceptions++The watch/trace/monitor/stack/tt commands all support the
+-vparameter.
When the command is executed, there is no output result. There are two possibilities:
+The matched function is not executed
The result of the conditional expression is false
But the user cannot tell which situation is.
+Using the -v option, the specific value and execution result of Condition express will be printed for easy confirmation.
such as:
+$ watch -v -x 2 demo.MathGame print 'params' 'params[0] > 100000'
+Press Q or Ctrl+C to abort.
+Affect(class count: 1 , method count: 1) cost in 29 ms, listenerId: 11
+Condition express: params[0] > 100000 , result: false
+Condition express: params[0] > 100000 , result: false
+Condition express: params[0] > 100000 , result: true
+ts=2020-12-02 22:38:56; [cost=0.060843ms] result=@Object[][
+ @Integer[200033],
+ @ArrayList[
+ @Integer[200033],
+ ],
+]
+Condition express: params[0] > 100000 , result: true
+ts=2020-12-02 22:38:57; [cost=0.052877ms] result=@Object[][
+ @Integer[123047],
+ @ArrayList[
+ @Integer[29],
+ @Integer[4243],
+ ],
+]
+++watch/trace/monitor/stack/tt 命令都支持
+-v参数
当命令执行之后,没有输出结果。有两种可能:
+匹配到的函数没有被执行
条件表达式结果是 false
但用户区分不出是哪种情况。
+使用 -v选项,则会打印Condition express的具体值和执行结果,方便确认。
比如:
+$ watch -v -x 2 demo.MathGame print 'params' 'params[0] > 100000'
+Press Q or Ctrl+C to abort.
+Affect(class count: 1 , method count: 1) cost in 29 ms, listenerId: 11
+Condition express: params[0] > 100000 , result: false
+Condition express: params[0] > 100000 , result: false
+Condition express: params[0] > 100000 , result: true
+ts=2020-12-02 22:38:56; [cost=0.060843ms] result=@Object[][
+ @Integer[200033],
+ @ArrayList[
+ @Integer[200033],
+ ],
+]
+Condition express: params[0] > 100000 , result: true
+ts=2020-12-02 22:38:57; [cost=0.052877ms] result=@Object[][
+ @Integer[123047],
+ @ArrayList[
+ @Integer[29],
+ @Integer[4243],
+ ],
+]
+