[英]How can I send information to the console in vs2012 C#
I would like to log some data when I am in a for loop. 当我处于for循环中时,我想记录一些数据。 How can I have the data sent to the VS2012 console so I can view it later?
如何将数据发送到VS2012控制台,以便以后查看?
what exactly do you mean? 你到底什么意思? Would Console.WriteLine(...)
do?Console.WriteLine(...)
可以吗?Have you considered reading the documentation? 您是否考虑过阅读文档?
Update: if output for debugging purposes in the actual VS console/shell is meant, one can set actions on breakpoints (at least in VS2017): 更新:如果要在实际的VS控制台/ shell中进行调试输出,则可以在断点上设置操作(至少在VS2017中):
setting an action (right click): 设置操作(右键单击):
In VS2013 it's called
When hit
在VS2013中,它被称为“
When hit
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.