2gis / Winium.Mobile

Winium.Mobile is Selenium Remote WebDriver implementation for automated testing of Windows StoreApps and Silverlight apps, tested on emulators (currently only Windows Phone/Mobile apps are supported).
Mozilla Public License 2.0
51 stars 29 forks source link

InnerServer loses stacktrace of exceptions, making it harder to debug issues #180

Open NickAb opened 7 years ago

NickAb commented 7 years ago

Our sync invoke method rethrows captured exception with new stacktrace, losing crucial information that could be helpful while debugging. See CommandBase.cs#L96 for StoreApps. Same thing for Silverlight.

We should keep original stacktrace using something like throw new Exception(message, ex) and making sure that final json response includes message and stacktrace both of exception and any of its inner exceptions.