简体   繁体   English

Visual Studio调试窗口条输出

[英]Visual Studio debug window strips output

I'm using Visual Studio 2010 to develop a C# Application. 我正在使用Visual Studio 2010开发C#应用程序。 It retrieves a Shoutcast Stream. 它检索一个Shoutcast流。 It reads 256 Bytes in each loop-cycle and is supposed to write them to the debug-output. 它在每个循环周期中读取256个字节,并应将其写入调试输出。 They are stripped badly. 他们被剥得很厉害。

Could this be due to some Unicode-signs? 这可能是由于某些Unicode符号引起的吗? How can I make output-window-safe Strings which won't get stripped? 如何制作不会被剥离的输出窗口安全字符串?

You haven't shown how you're writing them out, which makes it hard to know what's wrong. 您尚未显示如何编写它们,这使得很难知道出了什么问题。

If you're reading binary data, I would personally write that out in hex. 如果您正在读取二进制数据,我个人会用十六进制写出来。 BitConverter.ToString(byte[]) will do that very simply. BitConverter.ToString(byte[])可以很简单地做到这一点。

Do you mean it won't write them out ever, or just delayed? 您是说永远不会将它们写出来,还是只会延迟? You can flush the stream to force it to write immediately. 您可以刷新流以强制其立即写入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM