<tfoot id='o4kDF'></tfoot>

  1. <small id='o4kDF'></small><noframes id='o4kDF'>

      <i id='o4kDF'><tr id='o4kDF'><dt id='o4kDF'><q id='o4kDF'><span id='o4kDF'><b id='o4kDF'><form id='o4kDF'><ins id='o4kDF'></ins><ul id='o4kDF'></ul><sub id='o4kDF'></sub></form><legend id='o4kDF'></legend><bdo id='o4kDF'><pre id='o4kDF'><center id='o4kDF'></center></pre></bdo></b><th id='o4kDF'></th></span></q></dt></tr></i><div id='o4kDF'><tfoot id='o4kDF'></tfoot><dl id='o4kDF'><fieldset id='o4kDF'></fieldset></dl></div>

      <legend id='o4kDF'><style id='o4kDF'><dir id='o4kDF'><q id='o4kDF'></q></dir></style></legend>
      • <bdo id='o4kDF'></bdo><ul id='o4kDF'></ul>
    1. 如何使用 WebStorm IDE 在我的 Meteor 应用程序中调试 CoffeeScript

      How can I debug CoffeeScript in my Meteor app using the WebStorm IDE(如何使用 WebStorm IDE 在我的 Meteor 应用程序中调试 CoffeeScript)
          1. <small id='Tpr5z'></small><noframes id='Tpr5z'>

              <tbody id='Tpr5z'></tbody>

            • <bdo id='Tpr5z'></bdo><ul id='Tpr5z'></ul>

              <legend id='Tpr5z'><style id='Tpr5z'><dir id='Tpr5z'><q id='Tpr5z'></q></dir></style></legend>
              <tfoot id='Tpr5z'></tfoot>

                <i id='Tpr5z'><tr id='Tpr5z'><dt id='Tpr5z'><q id='Tpr5z'><span id='Tpr5z'><b id='Tpr5z'><form id='Tpr5z'><ins id='Tpr5z'></ins><ul id='Tpr5z'></ul><sub id='Tpr5z'></sub></form><legend id='Tpr5z'></legend><bdo id='Tpr5z'><pre id='Tpr5z'><center id='Tpr5z'></center></pre></bdo></b><th id='Tpr5z'></th></span></q></dt></tr></i><div id='Tpr5z'><tfoot id='Tpr5z'></tfoot><dl id='Tpr5z'><fieldset id='Tpr5z'></fieldset></dl></div>
                本文介绍了如何使用 WebStorm IDE 在我的 Meteor 应用程序中调试 CoffeeScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我可以使用 JavaScript 使用此问题中的说明在 WebStorm 中进行 Meteor 调试(如何使用 WebStorm IDE 调试 Meteor 应用程序?).

                I'm able to get Meteor debugging in WebStorm using JavaScript using the instructions in this question (How can I debug my Meteor app using the WebStorm IDE?).

                但是,我似乎无法在 coffeescript 文件中设置断点.

                However, I cannot seem to set breakpoints in coffeescript files.

                可以这样做吗?

                推荐答案

                我在这个问题上摆弄了一段时间,但没有取得很大的成功.据我所知,为了让 WebStorm 支持 coffeescript 断点,它需要自己生成转译的 js 和映射文件……这会破坏流星,因为它会执行自己的咖啡脚本编译.

                I fiddled with this for a while without any great success. From what I could gather, for WebStorm to support coffeescript breakpoints it needs to generate the transpiled js and map files itself... which will break meteor, as it does its own coffeescript compilation.

                最后,我得到的最接近的是:

                In the end, the closest I got was to:

                1. 使用节点调试器选项运行流星:

                1. Run meteor with the node debugger options:

                $ NODE_OPTIONS="--debug=47977" 流星

                $ NODE_OPTIONS="--debug=47977" meteor

                在 Webstorm 中设置 node.js 远程调试配置,将其指向相同的端口 (47977).

                Setup a node.js remote debug configuration in Webstorm, pointing it at the same port (47977).

                启动调试会话

                在调试器的脚本"选项卡中显示的转译 js 文件中设置我的断点.令人困惑的是,在这些文件上设置断点时,我的 WebStorm (8.0.4) 版本并没有在装订线中显示通常的红色圆圈图标......但它确实设置了断点并在那里中断.

                Set my breakpoints in the transpiled js files shown in the debugger's "scripts" tab. Confusingly, when setting breakpoints on these files, my version of WebStorm (8.0.4) did not show the usual red circle icon in the gutter... but it did set the breakpoint and break there.

                所以不理想,但总比没有好,比使用节点检查器更方便!

                So not ideal, but still better than nothing and more convenient than using node-inspector!

                这篇关于如何使用 WebStorm IDE 在我的 Meteor 应用程序中调试 CoffeeScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                Rails 3.1 ajax:success handling(Rails 3.1 ajax:成功处理)
                CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)

                <legend id='Oq7Um'><style id='Oq7Um'><dir id='Oq7Um'><q id='Oq7Um'></q></dir></style></legend>

                  • <small id='Oq7Um'></small><noframes id='Oq7Um'>

                    1. <i id='Oq7Um'><tr id='Oq7Um'><dt id='Oq7Um'><q id='Oq7Um'><span id='Oq7Um'><b id='Oq7Um'><form id='Oq7Um'><ins id='Oq7Um'></ins><ul id='Oq7Um'></ul><sub id='Oq7Um'></sub></form><legend id='Oq7Um'></legend><bdo id='Oq7Um'><pre id='Oq7Um'><center id='Oq7Um'></center></pre></bdo></b><th id='Oq7Um'></th></span></q></dt></tr></i><div id='Oq7Um'><tfoot id='Oq7Um'></tfoot><dl id='Oq7Um'><fieldset id='Oq7Um'></fieldset></dl></div>
                      <tfoot id='Oq7Um'></tfoot>
                          <bdo id='Oq7Um'></bdo><ul id='Oq7Um'></ul>
                            <tbody id='Oq7Um'></tbody>