If you build Node.js from source and want to try both the Debug and Relase configurations, and you notice that if you do
% ./configure --without-snapshot --debug
% make
you get both Debug and Release versions, and you think you can use them normally, think again:
magi@ubuntu ~/s/d/node> strings out/Debug/node | grep default_configuration
'default_configuration': 'Debug',
magi@ubuntu ~/s/d/node> strings out/Release/node | grep default_configuration
'default_configuration': 'Debug',
Note that even the "Release" binary memorized the configuration you built
as "Debug", and thus, if you use npm
or node-gyp
to build native code
extensions with this node
binary, it'll be misdetected as Release.