Tool for printing the tree structure of Globals using the excellent NodeMCU-Tools (@BoresXP) extension for VS Code.
Open the NodeMCU-Tools extension settings and modify the code for Snippets in the 'settings.json' file.
"nodemcu-tools.snippets": {
"Globals": "local name = '~Globals' if file.exists (name .. '.lc') then dofile(name .. '.lc') elseif file.exists(name .. '.lua') then dofile(name .. '.lua') end"
},
Upload the file '~Globals.lc' to ESP.
The console will present a menu for extended table output and wait for input for 10 seconds.