Add an icon to start an additional process with inspect flag.
Now that we are fiddling with extensibility we will probably need to debug more than once our own code.
I normally handle this via terminal but it would help having a direct access from UI and running on a different port(3001?).
For local server this is straighforward.
For docker, additionally the debug port would need to be forwarded.
Yesterday while building the Nano ID extension I had to launch twice a new node.js process with the inspect flag to check a few things in my module code.
If this could be added as a shortcut it would be great. An icon to launch a second node process in a different port with the inspect flag. It could also open an instance of chrome with the inspect flag too.
I think I am confusing you. I know how to debug nodejs apps
I am just suggesting a UI QoL change so that clicking an icon in Wappler UI spins of a new local server with another port with inspect flag and possibly launch a new chrome instance with inspect flag too.
Because the console gives limited output for errors. I can’t see the contents of variables, scopes, etc.
Also, the need to set breakpoints in our custom code or even in the npm module being used.
maybe always start the local dev server with the --inspect option so that you just need to call chrome://inspect to open the devtools (there is even a shortcut for it - maybe we can add an icon for the devtools )