Permalink
Browse files

lib: build `node inspect` into `node`

Include the relevant files from `deps/node-inspect` in the compiled
`node` binary and make `node inspect` work like `node-inspect`.

PR-URL: #10187
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
addaleax authored and italoacasas committed Dec 20, 2016
1 parent 8fdfa08 commit 3596d156c1e907c54c3f3e5430ef17fe1187106f
Showing with 7 additions and 0 deletions.
  1. +4 −0 lib/internal/bootstrap_node.js
  2. +3 −0 node.gyp
@@ -76,6 +76,10 @@
// Start the debugger agent
NativeModule.require('_debugger').start();
} else if (process.argv[1] === 'inspect') {
// Start the debugger agent
NativeModule.require('node-inspect/lib/_inspect').start();
} else if (process.argv[1] === '--remote_debugging_server') {
// Start the debugging server
NativeModule.require('internal/inspector/remote_debugging_server');
View
@@ -112,6 +112,9 @@
'deps/v8/tools/tickprocessor.js',
'deps/v8/tools/SourceMap.js',
'deps/v8/tools/tickprocessor-driver.js',
'deps/node-inspect/lib/_inspect.js',
'deps/node-inspect/lib/internal/inspect_client.js',
'deps/node-inspect/lib/internal/inspect_repl.js',
],
'conditions': [
[ 'node_shared=="true"', {

0 comments on commit 3596d15

Please sign in to comment.