Oh my god... Doing Node-RED developments already a couple of years, so I always need to start my Node-RED via NodeJs in debug mode. Which allows me to connect to NodeJs via a debugger (e.g. Chrome Developer tools or VSCode or whatever).
However to run NodeJs in debug mode, you need to pass extra startup parameters:
node --inspect=127.0.0.1 /usr/bin/node-red
But adding such startup parameters isn't very convenient, because you always need to start messing with the default startup commands. E.g. I have spend at the time being quite some time to debug Node-RED in a docker container.
And suddenly last night I though: it is also possible to turn on/off debug mode live in a running Node-RED instance via the NodeJs Inspector API. Which means I have been messing with startup command parameters for nothing all that time .
Anyway I don't need that anymore because now I can finally use my new node-red-contrib-inspector node
As always, all "constructive" feedback is very welcome!!