You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/xdc/debug/debug.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
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.
6
6
7
-
### debug_blockProfile%
7
+
### debug_blockProfile
8
8
9
9
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.
10
10
@@ -38,7 +38,7 @@ Response:
38
38
```
39
39
40
40
41
-
### debug_chaindbCompact%
41
+
### debug_chaindbCompact
42
42
43
43
The `chaindbCompact` method flattens the entire key-value database into a single level, removing all unused slots and merging all keys.
44
44
@@ -67,7 +67,7 @@ Response:
67
67
```
68
68
69
69
70
-
### debug_chaindbProperty%
70
+
### debug_chaindbProperty
71
71
72
72
The `chaindbProperty` method returns leveldb properties of the key-value database.
The `dbGet` method returns the raw value of a key stored in the database.
143
143
@@ -297,7 +297,7 @@ Response:
297
297
```
298
298
299
299
300
-
### debug_getModifiedAccountsByHash%
300
+
### debug_getModifiedAccountsByHash
301
301
302
302
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.
303
303
@@ -368,7 +368,7 @@ Response:
368
368
```
369
369
370
370
371
-
### debug_goTrace%
371
+
### debug_goTrace
372
372
373
373
The `goTrace` method turns on Go runtime tracing for the given duration and writes trace data to disk.
374
374
@@ -462,7 +462,7 @@ Response:
462
462
See [debug_memStats_response.json](./debug_memStats_response.json)
463
463
464
464
465
-
### debug_mutexProfile%
465
+
### debug_mutexProfile
466
466
467
467
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.
468
468
@@ -496,7 +496,7 @@ Response:
496
496
```
497
497
498
498
499
-
### debug_preimage%
499
+
### debug_preimage
500
500
501
501
The `preimage` method returns the preimage for a sha3 hash, if known.
502
502
@@ -672,7 +672,7 @@ Response:
672
672
```
673
673
674
674
675
-
### debug_setHead%
675
+
### debug_setHead
676
676
677
677
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.
678
678
@@ -869,7 +869,7 @@ Response:
869
869
```
870
870
871
871
872
-
### debug_storageRangeAt%
872
+
### debug_storageRangeAt
873
873
874
874
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).
875
875
@@ -902,7 +902,7 @@ Response:
902
902
```
903
903
904
904
905
-
### debug_traceBlock%
905
+
### debug_traceBlock
906
906
907
907
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.
908
908
@@ -999,7 +999,7 @@ Response:
999
999
See [debug_traceBlockByNumber_response.json](./debug_traceBlockByNumber_response.json)
1000
1000
1001
1001
1002
-
### debug_traceBlockFromFile%
1002
+
### debug_traceBlockFromFile
1003
1003
1004
1004
The `traceBlockFromFile` meothod accepts a file containing the RLP of the block.
1005
1005
@@ -1079,7 +1079,7 @@ Response:
1079
1079
```
1080
1080
1081
1081
1082
-
### debug_traceTransaction%
1082
+
### debug_traceTransaction
1083
1083
1084
1084
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.
0 commit comments