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
* blockchain: Update debugging section of README
* devp2p: Update debugging section of README
* client: Update debugging section of README
* evm: Update debugging section of README
* Rename evm journal debug symbol
* Update statemanager DEVELOPER document with debuging documentation
* Update statemanager debug symbol names
* verkle: Update debugging section of README
* Add information about guard rail being necessary to all package READMEs that provide logging but do not include it
* Add initial sentence with link to debug library in package readmes
* Remove sentence about exporting DEBUG env variable
* statemanager: Make namespaces all lowercase
* client: Make debug namespaces all lowercase
* client: Add list of debug namespace options to debug docs
* Make debug usage examples all use lowercase namespacing
* Move info about guardrail to bottom of debugging section in docs and make example more concrete
* Revert "Make debug usage examples all use lowercase namespacing"
This reverts commit 30164f1.
* Add trienode to list of correct words for cspell
* Some doc updates and fixes
---------
Co-authored-by: acolytec3 <[email protected]>
Co-authored-by: Holger Drewes <[email protected]>
|`deletedCanonicalBlocks`| Emitted when blocks are reorged and deleted |
241
241
242
-
## Developer
242
+
## Debugging
243
243
244
-
For debugging blockchain control flows the [debug](https://github.com/visionmedia/debug)library is used and can be activated on the CL with `DEBUG=[Logger Selection] node [Your Script to Run].js`.
244
+
This library uses the [debug](https://github.com/visionmedia/debug)debugging utility package.
245
245
246
246
The following initial logger is currently available:
247
247
@@ -257,6 +257,11 @@ Run with the clique logger:
257
257
DEBUG=ethjs,blockchain:clique tsx test.ts
258
258
```
259
259
260
+
`ethjs`**must** be included in the `DEBUG` environment variables to enable **any** logs.
261
+
Additional log selections can be added with a comma separated list (no spaces). Logs with extensions can be enabled with a colon `:`, and `*` can be used to include all extensions (currently do not apply for blockchain debugging, example taken from another library).
See our organizational [documentation](https://ethereumjs.readthedocs.io) for an introduction to `EthereumJS` as well as information on current standards and best practices. If you want to join for work or carry out improvements on the libraries, please review our [contribution guidelines](https://ethereumjs.readthedocs.io/en/latest/contributing.html) first.
Copy file name to clipboardExpand all lines: packages/client/README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -457,12 +457,28 @@ For more in-depth debugging on networking the underlying [devp2p](../devp2p) lib
457
457
DEBUG=ethjs,*,-babel [CLIENT_START_COMMAND]
458
458
```
459
459
460
-
The above command outputs the log messages from all `devp2p` debug loggers available. For a more targeted logging the different loggers can also be activated separately, e.g.:
460
+
The above command outputs the log messages from all `devp2p` debug loggers available. For more targeted logging, the different loggers can also be activated separately, e.g.:
|`client:fetcher`| This option enables logging for all fetchers |
470
+
|`client:fetcher:bytecode`| This option enables logging for the snap sync bytecode fetcher |
471
+
|`client:fetcher:storage`| This option enables logging for the snap sync storage fetcher |
472
+
|`client:fetcher:trienode`| This option enables logging for the snap sync trienode fetcher |
473
+
|`client:fetcher:account`| This option enables logging for the snap sync account fetcher |
474
+
464
475
```
465
476
477
+
`ethjs`**must** be included in the `DEBUG` environment variables to enable**any** logs.
478
+
Additional log selections can be added with a comma separated list (no spaces). Logs with extensions can be enabled with a colon `:`, and `*` can be used to include all extensions.
479
+
480
+
`DEBUG=ethjs,client:fetcher:*,devp2p:eth npm run client:start`
`ethjs` **must** be included in the `DEBUG` environment variables to enable **any** logs.
459
+
Additional log selections can be added with a comma separated list (no spaces). Logs with extensions can be enabled with a colon `:`, and `*` can be used to include all extensions.
`ethjs`**must** be included in the `DEBUG` environment variables to enable **any** logs.
425
+
Additional log selections can be added with a comma separated list (no spaces). Logs with extensions can be enabled with a colon `:`, and `*` can be used to include all extensions.
0 commit comments