Tools for Apache Cordova - TypeScript debugger jumps to wrong line

264 views Asked by At

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

0

There are 0 answers