Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js: Add debug support #128

Open
extempl opened this issue May 3, 2020 · 0 comments
Open

Node.js: Add debug support #128

extempl opened this issue May 3, 2020 · 0 comments

Comments

@extempl
Copy link
Contributor

extempl commented May 3, 2020

Currently, if you run zero with debug option - it will error in the console, that the desired port is already in use.
I assume it launches each sub-node with the same arguments, so it ends up with port duplications.
Therefore, what I'd suggest is:
On debugging:

  • build all endpoints immediately (not on request) - this is to be able to attach debugger before running the code.
  • add a unique parameter to be able to see it in the process list (like a path to the endpoint/page)
  • add a unique port to node processes, so we could to attach the debugger to any of them
  • return ports list in the console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant