Vla*_*mir 5 c# debugging performance visual-studio-2013
我的C#程序应该每秒执行30次异步任务.
该程序作为独立的Windows应用程序运行良好.
但是当它在Visual Studio 2013 Professional环境中以调试模式运行时,性能非常差 - 每秒只有5个任务,即使代码中没有断点也是如此.
缓慢调试VS.Net 2013的"功能"是否有办法调试时间关键的C#应用程序?
感谢user1720293关于日志记录的想法.巨大性能下降的主要原因是通过登录到控制台log4net.Appender.ConsoleAppender.在配置文件中注释掉一行之后,问题就消失了
<root>
<level value="DEBUG"/>
<!-- here's the source of the problem
<appender-ref ref="ConsoleAppender"/>
-->
<appender-ref ref="RollingFile"/>
</root>
Run Code Online (Sandbox Code Playgroud)
小智 0
代码中的大量断点可能会影响调试模式下的性能。请尝试删除无用的断点。