Debug Node Red Function nodes with VSC

I’m new to Home Assistant and am trying to get a handle on it. So far I have installed HA using the QCOW2 image and loaded it as a VM in UNRAID. I don’t have a Pi. Following installation there I have used the Configurations\Add-On store to install Node Red and Visual Studio Code. So far so good , I think. What I would like to do next is to figure out how I can debug my own Node-Red functions nodes using the visual debugger in VSC. Only I don’t know how to do that , I did find an article that suggested I should be able to do this with Chrome - but as I said I would prefer to use VSC - but any port in a storm. The article suggested I would have to be able to run Node Red in debug mode, and maybe install something else first (not clear about that as a lot of the guidance is dated from years ago and may be out of date. Anyway, the point is I don’t know how to do any of this if NR and VSC have been installed from the Add On store. Is there any guidance available , that a complete noob could follow that demonstrates how this is possible ? Thanks