Browse Source

lib,src,test: update --debug/debug-brk comments

Overlooked in commit 47f8f74 ("src: remove support for --debug") from
earlier this month.

PR-URL: https://github.com/nodejs/node/pull/12495
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6
Ben Noordhuis 8 years ago
parent
commit
e0b076a949
  1. 2
      lib/module.js
  2. 2
      src/node.cc
  3. 2
      test/inspector/test-inspector.js

2
lib/module.js

@ -528,7 +528,7 @@ Module.prototype.require = function(path) {
// Resolved path to process.argv[1] will be lazily placed here // Resolved path to process.argv[1] will be lazily placed here
// (needed for setting breakpoint when called with --debug-brk) // (needed for setting breakpoint when called with --inspect-brk)
var resolvedArgv; var resolvedArgv;

2
src/node.cc

@ -3342,7 +3342,7 @@ void SetupProcessObject(Environment* env,
READONLY_PROPERTY(process, "traceDeprecation", True(env->isolate())); READONLY_PROPERTY(process, "traceDeprecation", True(env->isolate()));
} }
// --debug-brk // --inspect-brk
if (debug_options.wait_for_connect()) { if (debug_options.wait_for_connect()) {
READONLY_PROPERTY(process, "_debugWaitConnect", True(env->isolate())); READONLY_PROPERTY(process, "_debugWaitConnect", True(env->isolate()));
} }

2
test/inspector/test-inspector.js

@ -89,7 +89,7 @@ function setupExpectValue(value) {
function testBreakpointOnStart(session) { function testBreakpointOnStart(session) {
console.log('[test]', console.log('[test]',
'Verifying debugger stops on start (--debug-brk option)'); 'Verifying debugger stops on start (--inspect-brk option)');
const commands = [ const commands = [
{ 'method': 'Runtime.enable' }, { 'method': 'Runtime.enable' },
{ 'method': 'Debugger.enable' }, { 'method': 'Debugger.enable' },

Loading…
Cancel
Save