我正在开发一个与BLE设备通信的应用程序。
到目前为止,一切都正常,但当我多次从一个活动切换时,会出现无法调试的异常。
01-26 09:06:43.040 I/Timeline(7341): 时间轴:Activity_launch_request id:BLEAPPtime:710885426 对象引用未设置为对象的实例。System.NullReferenceException:对象引用未设置为对象的实例。在Xamarin.VisualStudio.Debugger.AD7DebugExceptionEvent..ctor(Thread thread,String description)中,位于C:\Users\builder\data\lanes\2599\1390b70a\source\XamarinVS\src\Core\VisualStudio\Debugging\MonoTools.Engine\AD7Events.cs:line 433。在Xamarin.VisualStudio.Debugger.ExceptionsAdapter.OnUnhandledException(Object sender,TargetEventArgs args)中,位于C:\Users\builder\data\lanes\2599\1390b70a\source\XamarinVS\src\Core\VisualStudio\Debugging\MonoTools.Engine\ExceptionsAdapter.cs:line 67。在Mono.Debugging.Client.DebuggerSession.OnTargetEvent(TargetEventArgs args)中,在Mono.Debugging.Soft.SoftDebuggerSession.HandleBreakEventSet(Event[] es,Boolean dequeuing)中处理Break事件。在Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)中处理事件集。线程完成:#6 线程“”(0x6)已退出代码0(0x0)。
01-26 09:06:43.040 I/Timeline(7341): 时间轴:Activity_launch_request id:BLEAPPtime:710885426 对象引用未设置为对象的实例。System.NullReferenceException:对象引用未设置为对象的实例。在Xamarin.VisualStudio.Debugger.AD7DebugExceptionEvent..ctor(Thread thread,String description)中,位于C:\Users\builder\data\lanes\2599\1390b70a\source\XamarinVS\src\Core\VisualStudio\Debugging\MonoTools.Engine\AD7Events.cs:line 433。在Xamarin.VisualStudio.Debugger.ExceptionsAdapter.OnUnhandledException(Object sender,TargetEventArgs args)中,位于C:\Users\builder\data\lanes\2599\1390b70a\source\XamarinVS\src\Core\VisualStudio\Debugging\MonoTools.Engine\ExceptionsAdapter.cs:line 67。在Mono.Debugging.Client.DebuggerSession.OnTargetEvent(TargetEventArgs args)中,在Mono.Debugging.Soft.SoftDebuggerSession.HandleBreakEventSet(Event[] es,Boolean dequeuing)中处理Break事件。在Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)中处理事件集。线程完成:#6 线程“”(0x6)已退出代码0(0x0)。
如果我调试每一步,直到我的活动在最后的代码括号处完成,然后我得到了这个奇怪的异常,我不知道它来自哪里。
有人知道如何调试这个问题吗?或者了解这个BUG吗?