在调试过程中或在任何断点处捕获到未引发的异常时,是否可以让 vscode 发出警报?

Is it possible to make vscode sound an alarm when an unraised exception is caught while debugging, or at any breakpint?

我正在 运行 进行一些 python 测试,它们需要几个小时才能完成 运行,我希望 vs code 发出某种警报,以便我知道何时到达断点我想检查或引发未捕获的异常,这可能吗?

后面就是issue 135908, and could be part of VSCode 1.65 (Feb. 2022)

There are 3 different sounds since yesterday:

  • For lines with foldable areas,
  • with errors and
  • with breakpoints.

I think you might have heard the sound for foldable areas.

参见PR 140044“遇到断点时播放声音”

  • Use "audioNotifications.enabled": true to enable the feature.
  • Use "audioNotifications.breakpointHit": false to enable audio cues for breakpoints.