为什么Visual Studio(2019)在LogCritical上中断

时间:2019-12-05 17:22:17

标签: c# .net-core visual-studio-2019

Visual Studio 2019在logger.LogCritical调用中中断。

我不明白为什么。

我已清除所有例外设置

enter image description here

但是有捕获块,并且在其中VS2019中断并突出显示为绿色

enter image description here

记录器实现是Microsoft默认记录器

enter image description here

我会错过任何事情吗,有什么方法可以禁用此行为?

更新:

与LogCritical绝对相关,因为在将其更改为LogError之后,它不再损坏了。

另外,我注意到的另一件事是,以下代码在LogCritical上不会中断

enter image description here

然后中断代码在线程池中执行(不确定是否重要)。

0 个答案:

没有答案