diff --git a/bin/_mocha b/bin/_mocha index 61aac40d3a..3539063aeb 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -91,6 +91,7 @@ program .option('--icu-data-dir', 'include ICU data') .option('--inline-diffs', 'display actual/expected differences inline within each string') .option('--inspect', 'activate devtools in chrome') + .option('--inspect-brk', 'activate devtools in chrome and break on the first line') .option('--interfaces', 'display available interfaces') .option('--no-deprecation', 'silence deprecation warnings') .option('--no-exit', 'require a clean shutdown of the event loop: mocha will not call process.exit') diff --git a/bin/mocha b/bin/mocha index c6aaa97b00..0097153d15 100755 --- a/bin/mocha +++ b/bin/mocha @@ -28,6 +28,7 @@ process.argv.slice(2).forEach(function (arg) { case '--debug': case '--debug-brk': case '--inspect': + case '--inspect-brk': args.unshift(arg); args.push('--no-timeouts'); break;