Skip to content

--debug doesn't invoke --inspect correctly #3697

@boneskull

Description

@boneskull

at least, in theory, because of this typo:

mocha/bin/mocha

Lines 42 to 46 in 1e30501

// allow --debug to invoke --inspect on Node.js v8 or newer nodeOpts.inspect = childOpts.debug;
if (childOpts.debug) {
childOpts.timeout = false;
delete childOpts.debug;
debug('--debug -> --inspect');

Metadata

Metadata

Assignees

Labels

semver-patchimplementation requires increase of "patch" version number; "bug fixes"type: buga defect, confirmed by a maintainer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions