MonoTouch 调试器永远不会连接到应用程序 [英] MonoTouch debugger never connects to app

查看:21
本文介绍了MonoTouch 调试器永远不会连接到应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,MonoDevelop 调试器拒绝连接到模拟器.MonoDevelop 弹出一个框,上面写着正在等待调试器在 127.0.0.1:10000 上连接..."但从未连接.

I have an issue where the MonoDevelop debugger refuses to connect to the simulator. MonoDevelop pops a box saying "Waiting for debugger to connect on 127.0.0.1:10000..." but never connects.

我已经卸载并重新安装了所有东西,但仍然有同样的问题.

I have uninstalled and reinstalled everything, but still have the same issue.

我错过了什么?

提前致谢.

推荐答案

尝试以下操作:

  1. 在模拟器中,转到设置"应用程序"
  2. 在常规/Safari/照片下方的列表中找到您的应用名称
  3. 点按即可调出其设置
  4. 应该查看应用的调试设置"
  5. 启用"(第一项)设置为开"还是关"?

这是首先要看的.如果当您尝试调试应用程序时,应用程序的调试已启用"设置为关闭",您的应用程序加载到模拟器中,MonoDevelop 会说它正在尝试连接(因为它是),但是它不能,所以……好吧,你会得到你描述的结果.

That's the first thing to look at. If your app's debug "Enabled" setting is "Off" when you try to debug your app, your app will load in the simulator, and MonoDevelop will say it's trying to connect (because it is), but it won't be able to, so... well, you'll get the results you're describing.

如果您执行该列表中的步骤并遇到任何问题(例如您的应用没有出现在模拟器的设置"列表中,或者它没有调试设置",或者尽管切换了启用"但它仍然无法工作" 到 "On"),然后你可以尝试其他一些事情(没有特定的顺序 - 只需输入想到的内容):

If you go through the steps in that list and encounter any problems (like your app not showing up in the simulator's "Settings" list, or it not having "Debug Settings", or it still not working despite having switched "Enabled" to "On"), then you can try a few other things (in no particular order - just typing what comes to mind):

  • 从头开始创建一个新项目.同样的事情会发生吗?也就是说,您的所有应用都存在这个问题吗?

  • Create a new project from scratch. Does the same thing happen? That is, does this problem exist for all your apps?

在 MonoDevelop 中,打开您的应用程序的项目设置,单击iPhone Build",并将配置设置为Debug",平台设置为iPhone Simulator",确保Build debug-mode binaries"" 被选中.

In MonoDevelop, open your app's project settings, click on "iPhone Build", and, with the configuration set to "Debug" and the platform set to "iPhone Simulator", ensure that "Build debug-mode binaries" is checked.

在 MonoDevelop 中,打开构建"菜单,选择全部清除",重新构建您的项目,然后重试.

In MonoDevelop, open the "Build" menu, select "Clean All", rebuild your project, and try again.

如果您的应用程序配置正确,并且在模拟器上的设置正确,则尝试调试您的应用程序 - 如果 MonoDevelop 仍然存在并尝试连接但没有成功,请打开一个终端窗口(当您的应用程序处于仍在运行)并输入netstat -n -f inet" - 您是否在本地地址"列下的列表中的任何地方看到127.0.0.1:10000"?如果没有,那么模拟器上的某些东西可能会出现问题.

If your app is properly configured, and if its settings on the simulator are correct, then try debugging your app - if MonoDevelop still sits and tries to connect without success, open up a terminal window (while your app is still running) and type "netstat -n -f inet" - do you see "127.0.0.1:10000" anywhere in the list under the "Local Address" column? If not, then something's probably wonky on the simulator.

如果似乎没有任何效果,并且您已经重新安装了 MonoTouch 堆栈(就像您已经安装的那样),您可以尝试打开 iPhone 模拟器,打开iPhone Simulator"菜单,然后单击重置内容和设置..." - 这可能会带来不便,但如果您的选项不多,不妨试一试.

If nothing seems to be working, and if you've already reinstalled the MonoTouch stack (as it seems you have), you can try opening the iPhone simulator, open the "iPhone Simulator" menu, and click on "Reset Content and Settings..." - it can be an inconvenience, but if you're running out of options, you might as well give it a shot.

如果不了解有关您的设置的更多信息或无法访问日志文件,就很难弄清楚发生了什么,但我认为有几件事值得一试.

Without knowing more about your setup or having access to log files, it's tough to figure out what's going on, but those are a few things I think are worth trying.

希望这会有所帮助 - 至少为您指明一个有用的方向 :)

Hope this helps - at least to point you in a useful direction :)

这篇关于MonoTouch 调试器永远不会连接到应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆