在过去几个月的某个时候,有很多类似的信息
Event 7 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
Event 10 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
Event 10 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
开始向我的 Visual Studio 输出窗口发送垃圾邮件,导致很难找到实际的跟踪和调试消息。这些消息来自哪里?如何禁用它们?
为了解决这个问题,我尝试了几种方法。
- 大部分的answers https://stackoverflow.com/questions/14720599/disable-noise-messages-in-debug-output-windows-visual-studio-2012指向配置输出窗口中的复选框。如果我取消选中“程序输出”,问题消息就会消失,但我想保留的消息也会消失。
- 我尝试创建一个自定义
TraceListener
并在其中设置断点Write
and WriteLine
方法,希望调用堆栈能够告诉我消息是从哪里生成的。我发现这些消息不是来自典型的Diagnotics.Debug
or Diagnotics.Trace
方法。
- 我尝试通过重定向控制台
Console.SetOut()
到一个习惯TextWriter
我可以在其中设置断点。我再次找不到任何东西。
任何帮助,将不胜感激。
As @Sinatr https://stackoverflow.com/users/1997232/sinatr他在评论中提到,这可能是由几种不同的系统配置引起的,我在最初的搜索过程中没有找到相关信息。特别是,可以在以下链接找到更多信息:
- Stackify https://stackoverflow.com/q/42123222/1997232
- Azure https://social.msdn.microsoft.com/Forums/vstudio/en-US/f99be030-a2d9-4013-92f9-075bff0b318a/debugger-output-says-an-event-was-called-with-wrong-number-of-arguments-cant-find-source?forum=vsdebug
- Rebus https://github.com/rebus-org/Rebus/issues/566
在我的情况下,罪魁祸首似乎是 Application Insights 和 Stackify Prefix 的组合,如文档中所述上面链接的 StackOverflow 问题 https://stackoverflow.com/q/42123222/1997232.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)