Skip to content

Commit 99ee961

Browse files
committed
fix debug
1 parent 68fe536 commit 99ee961

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/xdc/debug/debug.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
The `debug` API gives you access to several non-standard RPC methods, which will allow you to inspect, debug and set certain debugging flags during runtime.
66

7-
### debug_blockProfile%
7+
### debug_blockProfile
88

99
The `blockProfile` method turns on block profiling for the given duration and writes profile data to disk. It uses a profile rate of 1 for most accurate information. If a different rate is desired, set the rate and write the profile manually using debug_writeBlockProfile.
1010

@@ -38,7 +38,7 @@ Response:
3838
```
3939

4040

41-
### debug_chaindbCompact%
41+
### debug_chaindbCompact
4242

4343
The `chaindbCompact` method flattens the entire key-value database into a single level, removing all unused slots and merging all keys.
4444

@@ -67,7 +67,7 @@ Response:
6767
```
6868

6969

70-
### debug_chaindbProperty%
70+
### debug_chaindbProperty
7171

7272
The `chaindbProperty` method returns leveldb properties of the key-value database.
7373

@@ -87,7 +87,7 @@ curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{
8787
"id": 1001,
8888
"method": "debug_chaindbProperty",
8989
"params": [
90-
""
90+
"leveldb.stats"
9191
]
9292
}' | jq
9393
```
@@ -137,7 +137,7 @@ Response:
137137
```
138138

139139

140-
### debug_dbGet%
140+
### debug_dbGet
141141

142142
The `dbGet` method returns the raw value of a key stored in the database.
143143

@@ -297,7 +297,7 @@ Response:
297297
```
298298

299299

300-
### debug_getModifiedAccountsByHash%
300+
### debug_getModifiedAccountsByHash
301301

302302
The `getModifiedAccountsByHash` method returns all accounts that have changed between the two blocks specified. A change is defined as a difference in nonce, balance, code hash, or storage hash. With one parameter, returns the list of accounts modified in the specified block.
303303

@@ -368,7 +368,7 @@ Response:
368368
```
369369

370370

371-
### debug_goTrace%
371+
### debug_goTrace
372372

373373
The `goTrace` method turns on Go runtime tracing for the given duration and writes trace data to disk.
374374

@@ -462,7 +462,7 @@ Response:
462462
See [debug_memStats_response.json](./debug_memStats_response.json)
463463

464464

465-
### debug_mutexProfile%
465+
### debug_mutexProfile
466466

467467
The `mutexProfile` method turns on mutex profiling for nsec seconds and writes profile data to file. It uses a profile rate of 1 for most accurate information. If a different rate is desired, set the rate and write the profile manually.
468468

@@ -496,7 +496,7 @@ Response:
496496
```
497497

498498

499-
### debug_preimage%
499+
### debug_preimage
500500

501501
The `preimage` method returns the preimage for a sha3 hash, if known.
502502

@@ -672,7 +672,7 @@ Response:
672672
```
673673

674674

675-
### debug_setHead%
675+
### debug_setHead
676676

677677
The `setHead` method sets the current head of the local chain by block number. Note, this is a destructive action and may severely damage your chain. Use with extreme caution.
678678

@@ -869,7 +869,7 @@ Response:
869869
```
870870

871871

872-
### debug_storageRangeAt%
872+
### debug_storageRangeAt
873873

874874
The `storageRangeAt` method returns the storage at the given block height and transaction index. The result can be paged by providing a maxResult to cap the number of storage slots returned as well as specifying the offset via keyStart (hash of storage key).
875875

@@ -902,7 +902,7 @@ Response:
902902
```
903903

904904

905-
### debug_traceBlock%
905+
### debug_traceBlock
906906

907907
The `traceBlock` method will return a full stack trace of all invoked opcodes of all transaction that were included in this block. Note, the parent of this block must be present or it will fail. For the second parameter see TraceConfig reference.
908908

@@ -999,7 +999,7 @@ Response:
999999
See [debug_traceBlockByNumber_response.json](./debug_traceBlockByNumber_response.json)
10001000

10011001

1002-
### debug_traceBlockFromFile%
1002+
### debug_traceBlockFromFile
10031003

10041004
The `traceBlockFromFile` meothod accepts a file containing the RLP of the block.
10051005

@@ -1079,7 +1079,7 @@ Response:
10791079
```
10801080

10811081

1082-
### debug_traceTransaction%
1082+
### debug_traceTransaction
10831083

10841084
The `traceTransaction` method debugging method will attempt to run the transaction in the exact same manner as it was executed on the network. It will replay any transaction that may have been executed prior to this one before it will finally attempt to execute the transaction that corresponds to the given hash.
10851085

0 commit comments

Comments
 (0)