Chrome Typescript debugging references wrong 'this'

两盒软妹~` 提交于 2019-11-26 18:32:12

问题


Sometimes when I hit a breakpoint in the Chrome Developer Tools, the TypeScript this is actually _this in the JavaScript. I have to manually put _this in the console to see what is actually being used. Is there a way to fix this?


回答1:


the TypeScript this is actually _this in the JavaScript

This is due to a bug in the sourcemaps. You can track it here : https://github.com/Microsoft/TypeScript/issues/2859



来源:https://stackoverflow.com/questions/31346989/chrome-typescript-debugging-references-wrong-this

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