Skip to content

Commit

Permalink
Website docs update examples (#28289)
Browse files Browse the repository at this point in the history
* docs: fix params for debug_stacks
* docs: fix typo on debug_stopGoTrace example
* docs: remove debug_seedHash example

Fixes issue #28282
Fixes issue #28288
Fixes issue #28281
  • Loading branch information
HighGoal1991 committed Oct 10, 2023
1 parent 4f74ab8 commit dc7c69e
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions docs/interacting-with-geth/rpc/ns-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,6 @@ Retrieves a block and returns its pretty printed form.
| Console | `debug.printBlock(number uint64)` |
| RPC | `{"method": "debug_printBlock", "params": [number]}` |

### debug_seedHash

Fetches and retrieves the seed hash of the block by number

| Client | Method invocation |
| :------ | -------------------------------------------------- |
| Go | `debug.SeedHash(number uint64) (string, error)` |
| Console | `debug.seedHash(number, [options])` |
| RPC | `{"method": "debug_seedHash", "params": [number]}` |

### debug_setBlockProfileRate

Sets the rate (in samples/sec) of goroutine block profile data collection. A non-zero rate enables block profiling, setting it to zero stops the profile. Collected profile data can be written using `debug_writeBlockProfile`.
Expand Down Expand Up @@ -374,8 +364,8 @@ Returns a printed representation of the stacks of all goroutines. Note that the

| Client | Method invocation |
| :------ | ------------------------------------------ |
| Console | `debug.stacks()` |
| RPC | `{"method": "debug_stacks", "params": []}` |
| Console | `debug.stacks(filter *string)` |
| RPC | `{"method": "debug_stacks", "params": [filter]}` |

### debug_standardTraceBlockToFile

Expand Down Expand Up @@ -465,8 +455,8 @@ Stops writing the Go runtime trace.

| Client | Method invocation |
| :------ | ----------------------------------------------- |
| Console | `debug.startGoTrace(file)` |
| RPC | `{"method": "debug_stopGoTrace", "params": []}` |
| Console | `debug.stopGoTrace(file)` |
| RPC | `{"method": "debug_stopGoTrace", "params": [string]}` |

### debug_storageRangeAt

Expand Down

0 comments on commit dc7c69e

Please sign in to comment.