从VS代码附加到NodeJS进程跳过第一条语句

我在VS Code之外启动NodeJS

node --debug-brk main.js 

这里是main.js的代码

 console.log('Hello from child'); console.log('Hello from child2'); console.log('Hello from child3'); 

当我使用VS代码附加configurationdebugging器时,在第一条语句上跳过断点。

 { "name": "Attach to Node", "type": "node", "address": "localhost", "port": 5858, } 

我在Windows 7上运行VS Code 0.8.0。节点版本v0.10.33。

我不知道这是VS代码debugging器的错误还是我的本地环境的问题?

在旧版本(<0.12.x)的NodeJS上,这是VSCode 0.8.0的一个问题。 从NodeJS版本0.12.0开始,VSCode在第一行中正常工作。 这将在VSCode 0.9.0中解决。