当我通过模拟器在iOS中运行MonoDevelop项目时,我得到了以下应用程序输出:
Mono.Debugger.Soft.VMDisconnectedException:抛出了“Mono.Debugger.Soft.VMDisconnectedException”类型的异常。在Mono.Debugger.Soft.Connection.SendReceive (CommandSet command_set,Int32命令,Mono.Debugger.Soft.PacketWriter数据包) 0x00000 in :0 at Mono.Debugger.Soft.Connection.Type_GetInfo (Int64 id) 0x00000 in :0 at Mono.Debugger.Soft.TypeMirror.GetInfo () 0x00000 in :0
在Mono.Debugger.Soft.TypeMirror.get_FullName () 0x00000 in :0
在Mono.Debugging.Soft.SoftDebuggerSession.HandleEvent (Mono.Debugger.Soft.Event e,布尔去队列) 0x00000 in :0 at Mono.Debugging.Soft.SoftDebuggerSession.HandleEvent (Mono.Debugger.Soft.Event e) 0x00000 in :0 at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler () 0x00000 in :0
然后是应用程序退出。
我在应用程序中复制了一些.pngs。如果我使用一个png,在它的属性下,如果我在它的“复制到输出目录”字段中的“复制始终”和“复制更新”之间切换,那么执行一个完整的重构,这个应用程序运行良好。但是,当我停止运行模拟器,再次尝试使用相同的问题时,我不得不再次切换字段并重新构建应用程序。
这对我来说真的很奇怪,有没有人知道如何解决这个问题,这样我就不用一直做这个晦涩的事情才能运行这个应用程序了?
此问题仅在调试模式下发生。
编辑:下面是实际的应用程序输出:
线程启动: Mono.Debugger.Soft.VMDisconnectedException:异常类型'Mono.Debugger.Soft.VMDisconnectedException‘抛出。在Mono.Debugger.Soft.Connection.SendReceive (CommandSet command_set,Int32命令,Mono.Debugger.Soft.PacketWriter数据包) 0x00000 in :0 at Mono.Debugger.Soft.Connection.Type_GetInfo (Int64 id) 0x00000 in :0 at Mono.Debugger.Soft.TypeMirror.GetInfo () 0x00000 in :0
在Mono.Debugger.Soft.TypeMirror.get_FullName () 0x00000 in :0
在Mono.Debugging.Soft.SoftDebuggerSession.HandleEvent (Mono.Debugger.Soft.Event e,布尔去队列) 0x00000 in :0 at Mono.Debugging.Soft.SoftDebuggerSession.HandleEvent (Mono.Debugger.Soft.Event e) 0x00000 in :0 at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler () 0x00000 in :0
我还发现,如果我把游戏更新到30 far而不是60 far,这个问题发生的频率要低得多。
发布于 2011-07-07 14:00:44
恢复OSX和清除模拟器似乎已经做到了这一点。我还是不知道是什么导致了这一切。
发布于 2011-06-27 20:58:53
如果我将图像添加到“参考资料”文件中,尝试重命名您使用的pngs,我也遇到了同样的问题。我让它工作的方式是将所有图像作为“构建操作”中的“内容”加载,并为每个实例指定完整的路径。
一旦修复了将所有映像存储在参考资料文件中的问题,模拟器就再次工作。如果没有,我会选择iOS模拟器本身,并尝试“重置内容和设置”,然后再一次调试您的应用程序。
这个线程可能会证明对MonoTouch debugger never connects to app有帮助。
https://stackoverflow.com/questions/6482398
复制相似问题