basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")

当执行如下命令报题目所示的谬误,是因为windows无奈执行shell命令导致(mac反对该命令,所以问题只会呈现在windows上)。

{    "debugger": "node ./node_modules/.bin/webpack --config webpack.config.js"}

咱们跳过shell命令,间接执行指标文件即可。

{    "debugger": "node ./node_modules/webpack/bin/webpack --config webpack.config.js"}

材料:
http://www.jerrychane.com/technique-sharing/2859.html