如何在相关的Xcode项目中设置断点 [英] How to set breakpoint in a dependent xcode project

查看:153
本文介绍了如何在相关的Xcode项目中设置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个XCode项目(我的主要xcode项目具有可执行文件).它依赖于其他一些项目(在详细信息视图"的项目"选项卡下,它还依赖其他一些xcode项目).

i have a XCode project (my main xcode project which has its executable). It has dependencies on a few other projects (under the Project tab in Detail View, there are a few other xcode project that it depends on).

我的问题是如何在依赖项目的代码中设置断点?

My question is how can I setup breakpoint in the code of the dependent project?

我尝试了这个,但这不起作用 1.打开我的主要xcode项目 2.双击相关的xcode项目之一 3.在源目录中,找到我要中断的文件并添加一个断点(通过单击编辑器边框的侧面,将显示一个蓝色的书签内容") 4.返回到"Build and Go",我的应用程序可以运行,但是它永远不会在我在#3中设置的断点处中断.

I tried this, but this does not work 1. open my main xcode project 2. double click one of the dependent xcode project 3. in the source directory, find the file I want to break and add a breakpoint (by click at the side of the border of the editor, a blue 'bookmark thing' shows up) 4. Go back to 'Build and Go', my application does run but it never breaks at the break point I set in #3.

有人可以帮我吗?我已经花了好几天了,我不知道为什么.

Can someone please help me? I have spent days on this, I can't figure it why.

谢谢.

推荐答案

1)在您的项目中添加断点

1) Add the breakpoint in your project

2)进入xcode的断点视图(在项目导航器的左上方),该视图的图标就像一个断点图标

2) Go into breakpoints view in xcode (top left besides project navigator) The view's icon is like a breakpoint icon

3)右键单击所需的断点,然后选择移至"->用户"

3) Right click on the required breakpoint and select "Move to" -> "User"

如果断点在用户"项目下,则所有项目都可以访问它.

If the breakpoint is under "User" project, then it is accessible by all projects.

这篇关于如何在相关的Xcode项目中设置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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