简体   繁体   中英

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. It is like it decides not to output the \\r\\n for a few lines. 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).

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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