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>
This commit is contained in:
parent
ee0620b235
commit
e0b076a949
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user