1
使用Webstrom我可以調試流星應用的正常服務器端和客戶端javascrpt。 但是如何在打字稿的情況下進行調試?如何在流星中調試打字稿
我只是從這裏https://github.com/meteor-typescript/meteor-typescript-compiler
但沒有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
}
只是把它英寸看不到任何區別。 – sreginogemoh