Xamarin表单:迁移到IOS时无法在指定的IL偏移量上设置断点
我正在尝试将在android上运行良好的Xamarin表单项目迁移到IOS 在为IOS构建时,我总是在VisualStudio上获得消息窗口弹出窗口Xamarin表单:迁移到IOS时无法在指定的IL偏移量上设置断点,ios,xamarin,xamarin.forms,Ios,Xamarin,Xamarin.forms,我正在尝试将在android上运行良好的Xamarin表单项目迁移到IOS 在为IOS构建时,我总是在VisualStudio上获得消息窗口弹出窗口 EXCEPTION: System.ArgumentException: Cannot set breakpoint on the specified IL offset. at Mono.Debugger.Soft.VirtualMachine.ErrorHandler(Object sender, ErrorHandlerEventAr
EXCEPTION: System.ArgumentException: Cannot set breakpoint on the specified IL offset. at Mono.Debugger.Soft.VirtualMachine.ErrorHandler(Object sender, ErrorHandlerEventArgs args) in CMWs2017mb-043002M-1twork\144‘sWernal\debugger-libs\ Mono.Debugger.Soft\Mono.Debugger.SoftWidualMachine.cs :line 373
at
Mono. Debugger.Soft.Connection. SendReceive(CommandSet command set, Int32 command, PacketWriter packet) in CM\vs2017mb-00002M-1 twork\144\s \external \debugger-libs \ Mono.Debugger.SoftWono.Debugger.Soft\Connection.csain e 1805 at Mono.Debugger.Soft.Connection.EnableEvent(EventType etype, SuspendPolicy suspend_policy, List'1 mods) in CM\vs2017mb-00002M-1 twork \144V■external \debugger-fibs\ Mono.Debugger.SoftWono.Debugger.Soft\Connedion.csain e 2682 at Mono.Debugger.Soft.EventRequest.SendReq(List'1 mods) in CM■vs2017mb-00002M-1twork \144\s \external \debugger-libs \ Mono.Debugger.SoMMono.Debugger.SoftEventRequest.cs:li ne 106 at Mono.Debugger.Soft.BreakpointEventRequest.Enable0 in CMWs2017mb-00002M-1 twork‘,144\s \external \debugger-libs \ Mono.Debugger.SoftWono.Debugger.Soft\BreakpointEventR equest.cs:line 25 at Mono.Debugging.Soft.SoftDebuggerSessioninsedBreakpoint (Breakpoint bp, Breaklnfo bi, MethodMirror method, Int32 ilOffset) in CM\vs2017mb-00002M-1 twork \144\Aexternadebugger-libs '1 Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1197 at Mono.Debugging.Soft.SoftDebuggerSession.ResolveFunction Breakpoint(BreakInfo bi, FunctionBreakpoint bp, MethodMirror method) in CM\vs2017mb-043002M-1\work\144‘s \edernal \debugger-fibs\ Mono.Debugging.Soft\SoftDebuggerSession.cs:line 2676 at Mono.Debugging.Soft.SoftDebuggerSession.ResolveBreakpoi nts(TypeMirror type) in C:NAWs2017mb-00002M-1\work\144\Aedernal\debugger-libs\ Mono.Debugging.SoftSoftDebuggerSession.csaine 2620 at Mono.Debugging.Soft.SoftDebuggerSession.HandleTypeLoad EventsffypeLoadEventa events) in CM\vs2017mb-00002M-1\_work\144\AexternaKdebugger-libs\ Mono.Debugging.Soft\SoftDebuggerSession.cs:line 2161 at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet( EventSet es) in CMWs2017mb-00002M-1\workV144‘s \e,dernal \debugger-fibs\ Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1690 at Mono.Debugging.Soft.SoftDebuggerSession.EventHandlera in CMWs2017mb-00002M-1\work \144\s \external \debugger-libs \ Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1612
你知道这是什么吗?我有一个苹果开发者帐户,我将应用部署到iphone上。
当我启动它时它就失败了,我无法调试它
关闭错误消息框后,VisualStudio就会崩溃
输出窗口中还有一个异常
2020-11-01 10:55:39.321 Xamarin.prebuild.iOS[4525:348114]警告:无法在MSFSG3000 Emulator.iOS上插入断点。应用程序:Main
(字符串[]):0无法在指定的IL偏移量上设置断点
System.ArgumentException:无法在指定的IL上设置断点
抵消。在Mono.Debugger.Soft.VirtualMachine.ErrorHandler(对象
发件人,ErrorHandlerEventArgs(args)位于
C:\A\vs2017mb-00002M-1_work\144\s\external\debugger libs\Mono.debugger.Soft\Mono.debugger.Soft\VirtualMachine.cs:line
373在Mono.Debugger.Soft.Connection.SendReceive(CommandSet
命令集,Int32命令,PacketWriter包)在
C:\A\vs2017mb-00002M-1\U work\144\s\external\debugger libs\Mono.debugger.Soft\Mono.debugger.Soft\Connection.cs:line
1805在Mono.Debugger.Soft.Connection.EnableEvent(EventType etype,
SuspendPolicy suspend_policy,在C:\A\vs2017mb-00002M-1\\u work\144\s\external\debugger libs\Mono.debugger.Soft\Mono.debugger.Soft\Connection.cs中列出1 mods):在
C:\A\vs2017mb-00002M-1\U工作\144\s\external\debugger libs\Mono.debugger.Soft\Mono.debugger.Soft\EventRequest.cs:line
106在中的Mono.Debugger.Soft.BreakpointEventRequest.Enable()处
C:\A\vs2017mb-00002M-1\U工作\144\s\external\debugger libs\Mono.debugger.Soft\Mono.debugger.Soft\BreakpointEventRequest.cs:line
25分
Mono.debug.Soft.SoftDebuggerSession.InsertBreakpoint(断点
bp、BreakInfo bi、MethodMirror方法、Int32 ilOffset)输入
C:\A\vs2017mb-00002M-1_work\144\s\external\debugger libs\Mono.debug.Soft\SoftDebuggerSession.cs:line
1197 at
Mono.debug.Soft.SoftDebuggerSession.ResolveFunctionBreakpoint(BreakInfo
bi,函数断点bp,方法镜像方法)在
C:\A\vs2017mb-00002M-1_work\144\s\external\debugger libs\Mono.debug.Soft\SoftDebuggerSession.cs:line
2676 at
Mono.debug.Soft.SoftDebuggerSession.ResolveBreakpoints(TypeMirror
类型)在
C:\A\vs2017mb-00002M-1_work\144\s\external\debugger libs\Mono.debug.Soft\SoftDebuggerSession.cs:line
2620 at
Mono.debug.Soft.SoftDebuggerSession.HandleTypeLoadEvents(TypeLoadEvent[]
事件)在
C:\A\vs2017mb-00002M-1_work\144\s\external\debugger libs\Mono.debug.Soft\SoftDebuggerSession.cs:line
2161 at
中的Mono.debug.Soft.SoftDebuggerSession.HandleEventSet(事件集es)
C:\A\vs2017mb-00002M-1_work\144\s\external\debugger libs\Mono.debug.Soft\SoftDebuggerSession.cs:line
中的Mono.debug.Soft.SoftDebuggerSession.EventHandler()处的1690
C:\A\vs2017mb-00002M-1_work\144\s\external\debugger libs\Mono.debug.Soft\SoftDebuggerSession.cs:line
1612[热重新加载](2020-11-01 10:55:37.1):警告:停止热重新加载:可能
找不到Xamarin.VisualStudio.IOS.MonoTouchDebuggerSession的项目
[热重新加载](2020-11-01 10:55:37.1):信息:(msfsg3000模拟器.iOS)
已停止热重新加载会话,原因是明显延迟。。。[热重新加载]
(2020-11-01 10:55:37.1):信息:已停止热重新加载会话。该应用程序具有
已经终止
请不要将错误作为图像发布您是否正在使用最新的visual studio?如果没有,请更新并重试。