mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 07:32:57 +00:00
update doc
This commit is contained in:
1 parent
c93fb9d59b
commit
c316e380b7
3 files changed
+49
-1
No files matched your search
@@ -38,8 +38,8 @@ Arthas is built to solve these issues. A developer can troubleshoot production i
|
||||
Contents
|
||||
--------
|
||||
|
||||
* [Installation](install-detail.md)
|
||||
* [Online tutorials(Recommend)](https://alibaba.github.io/arthas/arthas-tutorials?language=en)
|
||||
* [Installation](install-detail.md)
|
||||
* [Quick start](quick-start.md)
|
||||
* [Advanced usage](advanced-use.md)
|
||||
* [Commands](commands.md)
|
||||
|
||||
@@ -52,6 +52,30 @@ CharSequence {
|
||||
...
|
||||
```
|
||||
|
||||
#### Print source only
|
||||
|
||||
By default, the decompile result will have the `ClassLoader` information. With the `--source-only` option, you can print only the source code. Conveniently used with the [mc](mc.md)/[redefine](redefine.md) commands.
|
||||
|
||||
```
|
||||
$ jad --source-only demo.MathGame
|
||||
/*
|
||||
* Decompiled with CFR 0_132.
|
||||
*/
|
||||
package demo;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class MathGame {
|
||||
private static Random random = new Random();
|
||||
public int illegalArgumentCount = 0;
|
||||
...
|
||||
```
|
||||
|
||||
#### Decompile the specified method
|
||||
|
||||
```java
|
||||
|
||||
@@ -52,6 +52,30 @@ CharSequence {
|
||||
...
|
||||
```
|
||||
|
||||
#### 反编绎时只显示源代码
|
||||
|
||||
默认情况下,反编译结果里会带有`ClassLoader`信息,通过`--source-only`选项,可以只打印源代码。方便和[mc](mc.md)/[redefine](redefine.md)命令结合使用。
|
||||
|
||||
```
|
||||
$ jad --source-only demo.MathGame
|
||||
/*
|
||||
* Decompiled with CFR 0_132.
|
||||
*/
|
||||
package demo;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class MathGame {
|
||||
private static Random random = new Random();
|
||||
public int illegalArgumentCount = 0;
|
||||
...
|
||||
```
|
||||
|
||||
#### 反编译指定的函数
|
||||
|
||||
```java
|
||||
|
||||
Reference in new issue
Block a user