Bug 29818 - Debugger does not give useful debugging information on a crash
Summary: Debugger does not give useful debugging information on a crash
Status: RESOLVED DUPLICATE of bug 28836
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 5.2
Hardware: PC Windows
: High critical
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-05-06 17:59 UTC by victor.chelaru
Modified: 2015-09-04 05:15 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Project that crashes but does not give good crash info (46.33 KB, application/x-zip-compressed)
2015-05-06 17:59 UTC, victor.chelaru
Unhandled Exception Dialog.png (269.28 KB, image/png)
2015-06-02 16:44 UTC, Jonathan Pryor

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description victor.chelaru 2015-05-06 17:59:51 UTC
Created attachment 11105 [details]
Project that crashes but does not give good crash info

The attached project will crash, but not give as much information as could be provided to help solve the problem.

Expected behavior:

* System.Exception (or derived) should be thrown
* Internal exception should be viewable
* IDE should break on the point of exception
Comment 2 Jonathan Pryor 2015-06-02 16:44:37 UTC
Created attachment 11441 [details]
Unhandled Exception Dialog.png

This isn't ideal, but with the current Beta channel (~near stable, iirc) -- Xamarin Studio 5.9.2 and Xamarin.Android 5.1.2 -- running the app does present an unhandled exception dialog.

The default contents aren't useful, but clearing the [ ] Only show my code checkbox allows the cause of the exception:

ContentLoadException: Failed to load the asset file from levels/mastersheet.

We hope to improve this in a future release by having the ContentLoadException be accessible as the InnerException of the thrown Exception instance.
Comment 3 Naqeeb 2015-08-24 14:46:44 UTC
I have checked this issue with the help of attached sample given in bug description.
I am also getting reported behavior given in bug description and Comment 2. When we checked checkbox "[] only show my code"  getting causes of exception. Here is the screencast for the same: http://www.screencast.com/t/aMnx2ODk

Ide log: https://gist.github.com/NaqeebAnsari/1652eda767d7ca5bf563
Exception: https://gist.github.com/NaqeebAnsari/bf27341ceb9f1e92264a 

Environment info:
=== Xamarin Studio ===

Version 5.9.6 (build 17)
Installation UUID: 615bb4b2-6697-4d55-9844-2f3e7211942c
	Microsoft .NET 4.0.30319.42000
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Android ===

Version: 5.1.6 (Indie Edition)
Android SDK: D:\AndroidSDK\android-sdk
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
Java SDK: C:\Program Files\Java\jdk1.7.0_71
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.4.4
Location: C:\Program Files\Xamarin Android Player\DeviceManager.exe

=== Build Information ===

Release ID: 509060017
Git revision: 4bb836e9be8384ebfb19fc612f1dc91134b386fc
Build date: 2015-08-21 09:47:02-04
Xamarin addins: f4e5c33785602ddec4b4ab64b4e078cdeb36fa41

=== Operating System ===

Windows 6.2.9200.0 (64-bit)
Comment 4 David Karlaš 2015-09-04 05:15:22 UTC
Fixed in Xamarin.Android 5.2 aka Cycle 6(currently in Alpha channel).

*** This bug has been marked as a duplicate of bug 28836 ***