diff --git a/lib/index.js b/lib/index.js index 9c1d770..28bd56c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -91,7 +91,8 @@ const inspectProcess = function (cmd, options, devtools) { const isListeningWs = dataStr.startsWith('Debugger listening on ws://') const isAttached = dataStr.startsWith('Debugger attached') const isCompleted = dataStr.startsWith('Waiting for the debugger to disconnect') - const isInspectOutput = isListening || isListeningWs || isCompleted || isAttached + const DebugBrkDeprecation = dataStr.indexOf('DeprecationWarning: `node --inspect --debug-brk` is deprecated. Please use `node --inspect-brk` instead.') !== -1 + const isInspectOutput = isListening || isListeningWs || isCompleted || isAttached || DebugBrkDeprecation if (isListening) { log.silly('process: listening')