如何调试coffeescript在node.js与webstorm 6源地图 [英] how to debug coffeescript in node.js with webstorm 6 source maps
问题描述
我在此视频中设置了coffeescript文件观看者
I've set up the coffeescript file watcher like in this video
http://www.youtube.com/watch?v=Sl1Uk3zT5Fg
这对于使用Google Chrome的html项目调试来说似乎很奏效。但是,当我开始调试并在node.js项目的coffeescript文件中设置断点时,它不会到达断点。然而在生成的js文件中设置断点但是命中。
Which seems to work fine for an html project debugging with google chrome. However, when I start debugging and set a breakpoint in the coffeescript file in a node.js project, it doesn't hit the breakpoint. Setting a breakpoint in the generated js file does however get hit.
我需要做什么使调试器使用生成的源映射,并通过webstorm 6中的node.js逐步完成coffeescript?
What do I need to do for the debugger to use the generated source maps and step through the coffeescript with node.js in webstorm 6?
推荐答案
刚刚发布的CoffeeScript 1.6.2现在具有源映射的注释,位于WebStorm所期望的底部,如预期。
The just released CoffeeScript 1.6.2 now has the annotation for the source map at the bottom as WebStorm expects so it now works as expected.
这篇关于如何调试coffeescript在node.js与webstorm 6源地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!