gpt4 book ai didi

visual-studio-2015 - VS2015 日志在测试运行器输出中被截断

转载 作者:行者123 更新时间:2023-12-04 01:08:10 25 4
gpt4 key购买 nike

在 Visual Studio 附带的测试运行器中,您可以在测试方法中执行许多 Console.WriteLine 语句,这些消息将写入测试的输出窗口。我在 VS2013 中广泛使用了它。不幸的是,在 VS2015 中,在我看到消息之前,我只在测试的输出中看到了一页多一点的文本

!!! LOG TRUNCATED !!! To get complete log, Select 'Copy All' on the Right Click Menu and then paste into some text editor like notepad".



该消息非常清楚 VS2015 正在做什么以及如何解决此问题。但是,我的问题是如何关闭此“功能”或至少增加缓冲区大小?

最佳答案

这已在预览中修复。然而,后来修复被回滚了。

如果更新到最新版本的 Visual Studio 2017,截断的测试输出仍然是一个限制。

不幸的是,这并不容易跟踪,因为 Microsoft 使用多种工具来跟踪 Visual Studio 开发。

您可以在此处跟踪请求该功能的用户语音故事:

https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/9719772-allow-to-turn-off-the-log-truncated-feature-of-the

或者,这里还有一个针对 Visual Studio 的公开问题:

https://developercommunity.visualstudio.com/content/problem/57030/user-voice-story-on-truncating-test-log-output-was.html

关于visual-studio-2015 - VS2015 日志在测试运行器输出中被截断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32320218/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com