1
chloerei Aug 27, 2012
Rails 框架开发模式编译出来的 js 会在每个方法前面加上原 coffee 的行号,没仔细研究是 Rails 打的补丁还是编译工具自带的。
|
3
nouh Aug 28, 2012
用vim-coffeescript插件,然后加上这个配置
vnoremap <leader>c <esc>:'<,'>:CoffeeCompile<CR> nnoremap <leader>c :CoffeeCompile<CR> command -nargs=1 C CoffeeCompile | :<args> |
4
nouh Aug 28, 2012
|
5
infinte Aug 28, 2012
这个不就是万众期待的 source map 咩?
|
9
shellex OP |
11
zhangxiao Oct 1, 2012
错误信息里的行号是解释成js之后的行号,所以看下是哪个文件,然后
coffee -p /path/to/the/coffee-file | cat -n | less 大部分问题这么解决都挺快 |
12
island205 Apr 24, 2013
coffee-script已经开始支持scource map。http://island205.com/2013/03/06/coffeescript-1-6-1%E5%8F%91%E5%B8%83%EF%BC%8C%E6%94%AF%E6%8C%81source-map/
|