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

Change lib files without compiling the entire project again #2228

Closed
exx8 opened this issue Oct 12, 2019 · 4 comments
Closed

Change lib files without compiling the entire project again #2228

exx8 opened this issue Oct 12, 2019 · 4 comments
Labels

Comments

@exx8
Copy link

exx8 commented Oct 12, 2019

  • Node.js Version:
    12.11
  • OS:
    ubuntu 18.04
  • Scope (install, code, runtime, meta, other?):
    debugging

I'm trying to contribute to the project via coding.
The build process takes a lot of time. I would be happy to know:

  1. if there is a way to change lib files without rebuilding the entire project?
  2. Is there are a debugger for the lib files themselves?

Thanks

@addaleax
Copy link
Member

if there is a way to change lib files without rebuilding the entire project?

Running make should only re-compile the parts of the project that have been changed and files that depend on those, so it shouldn’t re-build the entire project. (“should” because our build system has been broken for a while now, and some parts are always re-compiled and it’s not bothering anybody enough to do something about it).

Another way to keep compile times down is to install ccache, which makes sure that re-compiling will use a cache even when changing branches a lot.

As for being able to modify lib/ files without re-compiling Node.js, that’s currently not possible, no. (I tried to change that ~ 2 years ago but got a lot of pushback, see nodejs/node#9652.)

Is there are a debugger for the lib files themselves?

Chromium DevTools should work for them like it does for regular userland source files, I think?

@exx8
Copy link
Author

exx8 commented Oct 13, 2019

it takes me over an hour to build the binaries. I will try to use ccache.

I cannot debug lib via node inspect if that what you meant, as they try to import some variable that isn't resolvable.

Thanks

@github-actions
Copy link

There has been no activity on this issue for 3 years and it may no longer be relevant. It will be closed 1 month after the last non-automated comment.

@github-actions github-actions bot added the stale label Jan 26, 2023
@github-actions
Copy link

There has been no activity on this issue and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants