开发者

Better Debuggin Info with monodroid?

开发者 https://www.devze.com 2023-03-27 09:35 出处:网络
I am in debug mode and when a line crashes it does not give very much inf开发者_JAVA百科ormation(no exception)

I am in debug mode and when a line crashes it does not give very much inf开发者_JAVA百科ormation(no exception)

All I get is

This is the next statement to execute when this thread returns from the current function.

Then the debugger usually detaches itself if I try to go to the next line.

  StreamReader reader = new StreamReader(e.Result);
  var test=  JSON.Instance.ToObject<Test>(reader.ReadToEnd());
  txtView.Text = test.Date;

It will update the textView but then it will go back to the StreamReader line and will display the above message.


Debugger performance in the current version of Mono for Android is definitely less than ideal. The best way to get debug information from your app is to make use of the Android Debug Log, which you can access through Visual Studio, the command line, or DDMS. Xamarin has good documentation of how to read and use that log up available here. You'll be able to see log statements that you put in your app, and will also get full stacktraces of any crashes that occur.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号