From 038c63636f435c599f1b20d9f515c2dfbdc501e8 Mon Sep 17 00:00:00 2001 From: Igwe Kalu Date: Sun, 16 Apr 2017 18:43:31 +0200 Subject: [PATCH] Support `--inspect-brk` on command-line --- bin/_mocha | 1 + bin/mocha | 1 + 2 files changed, 2 insertions(+) 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;