Skip to content

3 Rules

Frank edited this page Apr 19, 2024 · 1 revision

1 Class

When you input class, the name should contains full package name and class name.

The basic type like int and Integer, boolen and Boolean cannot auto box/unbox. If a method need a Integer param, you cannot pass a int, new Integer(123) is ok.

2 Print format

When you use Watch, you can see 3 print format:

  • toString just call the Object#toString
  • Json use jackson to serialize to a json string
  • Pretty use PrettyObject lib to print the object.

3 Transformer Chain

If you add a transformer, for example Watch a method in class A, then Watch same method again. These two transforms will be strung together and take effect in sequence.

For example, watch base64 by toString Json and Pretty in sequence. So be careful to delete transformer, when you add too many. Especially, remove the middle transformer, when it is depends on the previous one.

4 Watch/OuterWatch/Trace MaxHit

These feature effects in limited times, by default 100. You can change the default value when you start. The properties starts with w_ will be throw to the jvm process, well, removing the prefix w_.

$ java -jar -Dw_maxHit=10 swapper.jar
Clone this wiki locally