VS Code Unverified Breakpoints

后端 未结 6 620
温柔的废话
温柔的废话 2021-02-12 18:05

I\'m trying to debug a Node/Express TypeScript app in VS Code (v. 1.24.0) and all my breakpoints are greyed out during debugging.

The error is \"Unverified Breakpoint, B

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-12 18:42

    I was finding all the breakpoints I tried to set in one file got this problem, but non of the rest.

    I was naming the file dispatcher.js with a lower case, but pulling it into node with:

    const { Dispatcher } = require('./Dispatcher')
    

    and the contents was a javascript class being exported as:

    module.exports = { Dispatcher }
    

提交回复
热议问题