简体   繁体   English

Monotouch记录选项

[英]Monotouch Logging Options

当iPhone或iPad应用程序抛出错误时,建议使用Monotouch报告数据的方法是什么?

I simply use the Console.WriteLine, and a little wrapper around that, which helps me find the place and have some more information (like stacktrace and so on). 我只是使用Console.WriteLine和一个小包装,这有助于我找到这个地方并获得更多信息(如stacktrace等)。

Console.WriteLine in MT writes to the device's console, so you can check it with the Organizer tool in XCode, and that really works well. MT中的Console.WriteLine写入设备的控制台,因此您可以使用XCode中的管理器工具进行检查,这确实很有效。

Am not sure if this is the recommended approach, but I use it, works well, and I personally can recommend it. 我不确定这是否是推荐的方法,但我使用它,效果很好,我个人可以推荐它。

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

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