You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change lib files without compiling the entire project again #2228
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?
Activity
addaleax commentedon Oct 12, 2019
Running
makeshould 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.)Chromium DevTools should work for them like it does for regular userland source files, I think?
exx8 commentedon 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 commentedon Jan 26, 2023
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 commentedon Feb 25, 2023
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.