+ How to Debug your Waku dApp + # +
+JS-Waku and its most relevant dependencies (libp2p) uses debug to handle logs.
++ NodeJS + # +
+To enable debug logs when running js-waku with NodeJS, simply set the DEBUG
environment variable.
To only enable js-waku debug logs:
+export DEBUG=waku*
+
To enable js-waku and libp2p debug logs:
+export DEBUG=waku*,libp2p*
+
To enable all debug logs:
+export DEBUG=*
+
+ Browser + # +
+To see the debug logs in your browser’s console, you need to modify the local storage and add debug
key.
Here are guides for some modern browsers:
+ +key | +value | +effect | +
---|---|---|
debug |
+waku* |
+enable js-waku debug logs | +
debug |
+waku*,libp2p* |
+enable js-waku and libp2p debug logs | +
debug |
+* |
+enable all debug logs | +