在 Xcode Fix 中修改运行代码(在“运行"菜单中找到) [英] Modifying Running Code in Xcode Fix (found in the 'Run' menu)

查看:30
本文介绍了在 Xcode Fix 中修改运行代码(在“运行"菜单中找到)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Xcode 中运行"菜单中的修复"命令来修改我正在运行的代码,而无需重新构建.我已经阅读了苹果的文档,但遵循他们的典型的修复和继续工作流程:"(http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/XcodeDebugging/230-Modifying_Running_Code/modifying_running_code.html)似乎不适用于我……

I am attempting to use the 'Fix' command found in the 'Run' menu in Xcode to modify my running code without having to rebuild. I have read apple's documentation on it but following their 'typical fix-and-continue workflow:' (http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/XcodeDebugging/230-Modifying_Running_Code/modifying_running_code.html) doesn't seem to be working for me...

这是我正在做的事情(从头开始):- 在 Xcode 中创建基于视图的项目- 创建点击事件来触发一个只记录一些输出的函数- 使用调试器在模拟器中运行(command-Y)- 在调试器中单击暂停".- 向函数添加另一个日志(或其他一些简单的更改)- 保存修改后的代码- 从运行"菜单中选择修复"- 点击继续并点击按钮

Here is what i am doing (from scratch): - create view-based project in Xcode - create click event to trigger a function that just logs some output - run in simulator with debugger (command-Y) - click 'pause' in the debugger. - add another log (or some other simple change) to the function - save modified code - select 'Fix' from the 'Run' menu - click continue and click button

添加的日志没有出现...

The added log doesn't appear...

推荐答案

本身不是一个答案,但这个修复并继续"系统在 XCode 4 中消失了.我不会花很多时间学习使用它,或围绕它开发调试策略.

Not an answer, per se, but this "Fix and continue" system is disappearing in XCode 4. I wouldn't invest a lot of time in learning to use it, or developing a debugging strategy around it.

这篇关于在 Xcode Fix 中修改运行代码(在“运行"菜单中找到)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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