diff --git a/404.html b/404.html index 985ce2b..ce1c6e2 100644 --- a/404.html +++ b/404.html @@ -16,7 +16,7 @@ - + + + + + + +
+ + +
+
+ +
+ + + How to Debug your Waku dApp + + +
+ + + + + + +
+ + + +

+ 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:

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
keyvalueeffect
debugwaku*enable js-waku debug logs
debugwaku*,libp2p*enable js-waku and libp2p debug logs
debug*enable all debug logs
+
+ + + +
+ + + + + + + + + + +
+ + + +
+ +
+ + + + +
+ + + + +
+ + + + + + + + + + + + + + + + diff --git a/docs/guides/index.html b/docs/guides/index.html index 97f7472..18705b3 100644 --- a/docs/guides/index.html +++ b/docs/guides/index.html @@ -3,7 +3,7 @@ - + @@ -15,7 +15,7 @@ - +