Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(cli): add more verbose warning if '_debugger' module cannot be fo…
Browse files Browse the repository at this point in the history
…und. (#4800)
  • Loading branch information
rodrigc authored and qiyigg committed May 10, 2018
1 parent f8f490a commit 76324b8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/debugger/debuggerCommons.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
var baseDebugger = require('_debugger');
var baseDebugger;
try {
baseDebugger = require('_debugger');
} catch (e) {
if (e.code == 'MODULE_NOT_FOUND') {
console.log('***********************************************************');
console.log('* WARNING: _debugger module not available on Node.js 8 *');
console.log('* and higher. *');
console.log('* *');
console.log('* Use \'debugger\' keyword instead: *');
console.log('* https://goo.gl/MvWqFh *');
console.log('***********************************************************');
}
throw e;
}
var path = require('path');

/**
Expand Down

0 comments on commit 76324b8

Please sign in to comment.