Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorManish Sinha <manish.sinha@xamarin.com>2019-08-19 20:32:50 +0300
committermonojenkins <jo.shields+jenkins@xamarin.com>2019-08-29 15:10:55 +0300
commite777e3c560c8dcb1217afc817ec5f4646d4d58c3 (patch)
treef8456cf5fbe330d6e03765914ef75c1b29ac49d2 /main
parent6ba4180921c2643c8b82df39541c8ea7432f9971 (diff)
[AutoTest] Add logging in NSObjectResult.SetActiveRuntime to trace source of NRE
Diffstat (limited to 'main')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest.Results/NSObjectResult.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest.Results/NSObjectResult.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest.Results/NSObjectResult.cs
index 6ceb7b0fb0..a44718e75b 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest.Results/NSObjectResult.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest.Results/NSObjectResult.cs
@@ -361,10 +361,13 @@ namespace MonoDevelop.Components.AutoTest.Results
Type type = ResultObject.GetType ();
PropertyInfo pinfo = type.GetProperty ("RuntimeModel");
if (pinfo == null) {
+ LoggingService.LogDebug ($"Could not find 'RuntimeModel' property on {type}");
return false;
}
- IEnumerable<IRuntimeModel> model = (IEnumerable<IRuntimeModel>)pinfo.GetValue (ResultObject, null);
+ var pObject = pinfo.GetValue (ResultObject, null);
+ LoggingService.LogDebug ($"'RuntimeModel' property on '{type}' is '{pObject}' and is of type '{pinfo.PropertyType}'");
+ var model = (IEnumerable<IRuntimeModel>)pObject;
var runtime = model.FirstOrDefault (r => {
var mutableModel = r.GetMutableModel ();