This works correctly, you cannot put a breakpoint on the comment:
function P() {
// Test this
var a = 1;
}
This is the sourcemap:
{"version":3,"file":"W.js","sourceRoot":"","sources":["W.ts"],"names":["P"],"mappings":"AAAA,SAAS,CAAC;IAETA,AADAA,YAAYA;QACRA,CAACA,GAAGA,CAACA,CAACA;AACXA,CAACA"}
While here you can put a breakpoint on the comment but cannot put on 'var a = 1' !
module Q {
function P() {
// Test this
var a = 1;
}
}
Sourcemap:
{"version":3,"file":"W.js","sourceRoot":"","sources":["W.ts"],"names":["Q","Q.P"],"mappings":"AAAA,IAAO,CAAC,CAKP;AALD,WAAO,CAAC,EAAC,CAAC;IACTA,SAASA,CAACA;QAETC,AADAA,YAAYA;YACRA,CAACA,GAAGA,CAACA,CAACA;IACXA,CAACA;AACFD,CAACA,EALM,CAAC,KAAD,CAAC,QAKP"}
Checked in Google Chrome.
This works correctly, you cannot put a breakpoint on the comment:
This is the sourcemap:
While here you can put a breakpoint on the comment but cannot put on 'var a = 1' !
Sourcemap:
Checked in Google Chrome.