Tools for Apache Cordova - TypeScript debugger jumps to wrong line

佐手、 提交于 2019-12-11 12:28:20

问题


if i create a new BlankCordovaApp TypeScript-Project with Visual Studio 2015 RC and add these two ts files the following modifications to the index.ts and index.html

aaa.ts

class  AAA {
    add(a: number, b: number) {
        return a + b;
    }
}

bbb.ts

class BBB {
    mul(a: number, b: number) {
        return a * b;
    }
}

index.ts

 export function test() {

     var aaa = new AAA();
     var bbb = new BBB();

     var sum = aaa.add(2, 3);
     var product = bbb.mul(2, 3);

     var result = sum + product;
}

index.html

<button onclick="BlankCordovaApp2.Application.test()">TEST</button>

If i run these app on a android emulator or device and set a breakpoint to the first line of the test() function, then the debugger jumps to the last line of the bbb.ts file. Other breakpoints behave the same :(

What is wrong with the demo project? These behavior exists since i switch from the VS2015 CTP to the RC Version.

Regards

来源:https://stackoverflow.com/questions/30698886/tools-for-apache-cordova-typescript-debugger-jumps-to-wrong-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!