Visual Studio Code debugging chrome, Breakpoints wont hit

后端 未结 4 2235
深忆病人
深忆病人 2021-02-15 13:15

I have a Angular2/typescript app I am developing in VSCode. I use Gulp to build the typescript files and gulp-sourcemap to create map files. Attaching/launching chrome works wel

4条回答
  •  执念已碎
    2021-02-15 14:16

    Setting the workspace location to the location of my typescript files, and not my build files, worked for me.

    Unverified Breakpoint (my compiled file location)

    "webRoot": "${workspaceRoot}/build/client"
    

    Working Breakpoint (my ts file location)

    "webRoot": "${workspaceRoot}/client"
    

    I feel I should mention that I am using the Debugger for Chrome extension

提交回复
热议问题