-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Add section on how to build debug build #22510
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
Changes from 1 commit
c4a7b72
b81cd6a
5e3717b
d5c02d5
91fe56d
aa7d6ad
2f3d272
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -253,6 +253,23 @@ To install this version of Node.js into a system directory: | |
| $ [sudo] make install | ||
| ``` | ||
|
|
||
| #### Building a debug build | ||
|
|
||
| If you run into a issue where Node.js segfaults and the "segfault-handler" does not provide enough information, you might have to build a debug build of Node.js to get enough information to debug the issue further, this is done by : | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please replace 'a issue' -> 'an issue'.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can I suggest:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @refack I’d prefer something that makes clear that this relates almost exclusively to native errors.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| ```console | ||
| $ ./configure --debug | ||
| $ make -j4 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I might suggest |
||
| ``` | ||
|
|
||
| A make with "./configure --debug" generates two binaries, the regular release one in "out/Release/node" and a debug build in "out/Debug/node", only the release version is actually installed when you run "make install". | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure but I think this 'A' is not needed here, so it's just 'Make with ...' or ' Also, I think it'll be better with 'a debug build in' -> 'a debug binary in'.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also maybe it is worth to replace double quotes with backticks for all 4 cases here. |
||
|
|
||
| To use the debug build with with all the normal dependencies overwrite the release version in the install directory: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. with with -> with |
||
|
|
||
| ``` console | ||
| $ make install --prefix=/opt/node-debug/ | ||
| $ cp -a -f out/Debug/node /opt/node-debug/node | ||
| ``` | ||
|
|
||
| ### Windows | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We generally wrap lines at 80 characters (and there’s an extra space before the
:)This can also be taken care of when landing, I’d say.