具体问题如下:
"C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.6\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=60953 --nolazy bin\www
Debugger listening on port 60953
{ [Error: ENOENT: no such file or directory, open 'c:\Users\markk\Documents\work\q\internal\freelist.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'c:\\Users\\markk\\Documents\\work\\q\\internal\\freelist.js' }
{ [Error: ENOENT: no such file or directory, open 'c:\Users\markk\Documents\work\q\internal\child_process.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'c:\\Users\\markk\\Documents\\work\\q\\internal\\child_process.js' }
{ [Error: ENOENT: no such file or directory, open 'c:\Users\markk\Documents\work\q\internal\socket_list.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'c:\\Users\\markk\\Documents\\work\\q\\internal\\socket_list.js' }
这种情况发生在我创建的默认Node.js + Express.js项目中。因此,IDE不会调试节点javascript代码。
我发现了这个 - https://github.com/nodejs/node/issues/1328,这似乎很相关,但我不明白它是如何应用于IntelliJ IDEA 13的。