2015-12-03 22 views
1

使用Webstrom我可以調試流星應用的正常服務器端和客戶端javascrpt。 但是如何在打字稿的情況下進行調試?如何在流星中調試打字稿

我只是從這裏https://github.com/meteor-typescript/meteor-typescript-compiler

我只設置與調試會話斷點在代碼中運行流星打字稿示例: enter image description here

但沒有happend。中斷點hasne被擊中。

要編譯打字稿,我使用的是​​,所以它在流星應用程序啓動時自動完成。

這是js輸出我有:

(function(){ 

///////////////////////////////////////////////////////////////////////// 
//                  // 
// helloWorld.js              // 
//                  // 
///////////////////////////////////////////////////////////////////////// 
                     // 
'use strict';               // 1 
var HelloWorld = (function() {          // 3 
    function HelloWorld(name) {          // 
     if (name === void 0) { name = 'World'; }      // 
     this.name = name;            // 
    }                 // 
    HelloWorld.prototype.toString = function() {      // 
     return "Hello " + this.name;         // 
    };                 // 
    return HelloWorld;             // 
})();                 // 9 
console.log(new HelloWorld().toString());        // 11 
//# sourceMappingURL=helloWorld.js.map         // 
///////////////////////////////////////////////////////////////////////// 

}).call(this); 

.tsconfig配置:

{ 
    "diagnostics": true, 
    "module": "none", 
    "alwaysThrow": true, 
    "noResolve": true, 
    "useCache": false, 
    "sourceMap": true 
} 

回答