【发布时间】:2013-03-25 22:23:57
【问题描述】:
当我调用时,我能够将咖啡文件编译为与 .coffee/.js 文件位于同一目录中的 .map 文件
coffee --nodejs --debug-brk app.coffee
并启动节点检查器。应用程序文件的 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
*/
});
谢谢
【问题讨论】:
-
您是否配置了 chrome 以启用源映射?
-
是的。我打开了启用源映射。事实上我去删除了 app.js,但它仍然显示 app.coffee,但里面有 .js 代码。
-
这可能与我提出的 issue 有关。
-
你能在 chrome 中调试咖啡文件吗?
-
正在尝试调试客户端或服务器 (node.js) 应用程序?
标签: node.js coffeescript node-inspector