“Unverified breakpoint” in Visual Studio Code with Chrome Debugger extension

后端 未结 25 1987
太阳男子
太阳男子 2020-12-13 01:51

I am trying to debug my Typescript code in Visual Studio Code, using the Chrome Debugger extension, but I am getting the \"Unverified breakpoint\" message on my breakpoint,

25条回答
  •  温柔的废话
    2020-12-13 02:13

    In my case the problem was that the breakpoint was set on a line where a function was being declared

    openDetails(data: Asset) {         <-- The break point was here
        this.datailsOpen = true;
        this.currentAsset = data;
    }
    

    Solution: move it to inside the body of the function

    openDetails(data: Asset) {         
        this.datailsOpen = true;        <-- Move the break point here
        this.currentAsset = data;
    }
    

提交回复
热议问题