Skip to content

Commit 038c636

Browse files
committed
Support --inspect-brk on command-line
1 parent b4ebabd commit 038c636

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/_mocha

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ program
9191
.option('--icu-data-dir', 'include ICU data')
9292
.option('--inline-diffs', 'display actual/expected differences inline within each string')
9393
.option('--inspect', 'activate devtools in chrome')
94+
.option('--inspect-brk', 'activate devtools in chrome and break on the first line')
9495
.option('--interfaces', 'display available interfaces')
9596
.option('--no-deprecation', 'silence deprecation warnings')
9697
.option('--no-exit', 'require a clean shutdown of the event loop: mocha will not call process.exit')

bin/mocha

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ process.argv.slice(2).forEach(function (arg) {
2828
case '--debug':
2929
case '--debug-brk':
3030
case '--inspect':
31+
case '--inspect-brk':
3132
args.unshift(arg);
3233
args.push('--no-timeouts');
3334
break;

0 commit comments

Comments
 (0)