watch命令在verbose模式下,打印更多信息
- Dominant language
- Java
- Stars
- 37.5k
- Forks
- 7.6k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 4
Description
比如:
```
$ watch java.lang.Exception *
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 1) cost in 13437 ms, listenerId: 1
```
实际上,很多类被过滤掉了,查看`~/logs/arthas/arthas.log`,可以 发现:
```
2022-03-24 10:48:17 [arthas-command-execute] INFO c.t.arthas.core.advisor.Enhancer -ignore class: java.lang.IllegalAccessException, reason: class loaded by Bootstrap Classloader, try to execute `options unsafe true`
```
可以考虑把过滤掉的类和最终增强的类都打印出来。
Contributor guide
Research direction
Start by tracing the watch command's verbose output and the Enhancer log entries shown in the issue, including the `options unsafe true` path. Determine where filtered classes and successfully enhanced classes are available, then verify that verbose mode reports both while normal mode remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100