The program debug tool can provide the inter-active based on serial, which includes the basic command, and the download function for application program. Certainly, there are many other applicable open-source tools, such as, LuaLoader, NodeMCUStudioIDE, Decoda, etc. In this manual, LuaLoader is used to show the debug steps.
Tips: the download address for NodeMCUStudioIDE:
the download site for Decoda: