More Mono Android Debugging Tips

August 26th, 2011
  1. Install the new Mono Android release 1.0.3, which substantially improves debugging performance and various other problems.  You can read more about it, and download it from here.
  2. If you followed the instructions of my previous post, I have gathered even more information on how to improve the logcat experience.  Create a bat file on your desktop and add the following lines:
cmd /C “C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe” adb shell setprop debug.mono.trace E:all
cmd /K “C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe” logcat

The first command enables verbose logging for mono, note that I do not know if this will decrease performance but I can only imagine it will since it has to log more often and in more places.  If you are testing performance in your app I suggest you do not keep this enabled.  If you are testing memory usage, or you want the FULL details of every single stack trace, crash, etc than definitely keep this setting.

Now to launch logcat I simply double click the bat file, much easier….

Related posts:

  1. Mono Android Debugging
  2. Mono Android: Using Logcat Effectively
  3. Mono Android: Working with SQLite
  4. InfiniteListView Mono Android
  5. Mono Android Linking (Xamarin)

Leave a Reply