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

后端 未结 25 2025
太阳男子
太阳男子 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:14

    Another answer which I just discovered is related to lazy loaded modules.

    If you want to set breakpoints in code that is part of a lazy loaded module and you haven't loaded that module in the browser, VS code won't have access to the source maps to verify the breakpoints!

    so only set breakpoints when you have loaded the lazy loaded module you want to debug!

提交回复
热议问题