[英]Occasional Missing Carriage Return on Output Window from Debug.Writeline
Using debug.writeline, sometimes I end-up with four or five lines strung together in the Debug Output screen. 使用debug.writeline, 有时我会在Debug Output屏幕中将四或五行串在一起。 It is like it decides not to output the \\r\\n for a few lines. 就像它决定几行不输出\\ r \\ n一样。 Then, it starts doing it right again. 然后,它再次开始正确执行此操作。
It is generated at the same place in the program every time it does happen and it is always a Debug.Writeline statement (not Debug.Write). 每次发生时,它都会在程序的同一位置生成,并且始终是Debug.Writeline语句(而不是Debug.Write)。
Any ideas why this is happening? 任何想法为什么会这样?
I found the answer. 我找到了答案。 Bottom line: Don't have nulls in your string you want Debug.WriteLine to display the entire line and append the CR on the end. 底线:字符串中不要包含null,您希望Debug.WriteLine显示整行并将CR附加在末尾。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.