Debug WiFi on Nodemcu v3

I have a problem with a code, and they advised me to debug wifi. How can do this?

https://docs.platformio.org/en/latest/platforms/espressif32.html#debug-level