Issue with debugging “this” in VS2013 when using lambdas #2617
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Visual Studio
Integration with Visual Studio
I am converting some TypeScript code from using a hard-coded capture of "this":
to using lambdas:
TypeScript compiles the JS into something resembling the first code block and everything runs fine in the browser. The issue is when debugging in Visual Studio. When I inspect "this" after the lambda, it shows the window properties, instead of the class context.
If I debug directly in the browser, it shows the local context as it should. Is this a known issue? Maybe there is a problem with the mappings between the JS file and the TS file?
I am using VS2013 Update 4 and TypeScript 1.4.
The text was updated successfully, but these errors were encountered: