coo*_*ool 14 node.js coffeescript node-inspector
我可以在调用时将咖啡文件编译到与.coffee/.js文件相同的目录中的.map文件
coffee --nodejs --debug-brk app.coffee
Run Code Online (Sandbox Code Playgroud)
并启动节点检查器.应用程序文件的js版本以chrome格式加载.我错过了什么?
这是chrome为three.coffee文件显示的内容..
(function (exports, require, module, __filename, __dirname) { // Generated by CoffeeScript 1.6.2
(function() {
app.get('/three', function(req, res) {
debugger; return res.send('three/teedde');
});
}).call(this);
/*
//@ sourceMappingURL=three.map
*/
});
Run Code Online (Sandbox Code Playgroud)
谢谢
\n\n现在,node-inspector 支持源映射!\n github.com/node-inspector/node-inspector/issues/\xe2\x80\xa6 \xe2\x80\x93 Vitaliy Lebedev\n 2013 年 11 月 8 日 12:46
\n
归档时间: |
|
查看次数: |
3855 次 |
最近记录: |