Debug with Platform

Hello
I am beginner on PlatformIO, and it is my first program.
I am making a little development with NodeMCU Amiga V2 (ESP12E) and I would like to debug my code.
Pls could you tell me where or how to do to install a debugger because I find nothing on web or not understanding. Thanks a lot in advance.