在Xcode中删除断点 [英] Deleting breakpoints in Xcode

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

问题描述

在我的项目中有一些断点,由于某些原因不能关闭或删除。如何删除这些?我听说它们可以删除,删除扩展名为.dsk的文件,但我找不到该文件。在哪里?

解决方案

我提供了4个解决方案,你可以尝试。
有时所有你需要做的是单击并拖动断点逐个在您的项目中,并将其拖出屏幕。如果这不工作,尝试这些选项。至少有一个会肯定有效。



解决方案1:
或者更好的解决方案是关闭断点。在顶部栏上有一个构建和运行按钮所在的按钮;在它的左边,有一个断点按钮,指向右边的箭头的图像在按钮上。





编辑:进一步说明 解决方案2:
如果要删除一些您不需要的断点,请在项目中找到断点,然后单击并按住要删除的特定断点,你把它从侧边栏拖动;你会看到你的光标变成一个被打碎的纸球,让你知道,如果你放开,那么被鼠标持有的对象(在这种情况下是一个断点)将被删除。





解决方案3:
删除断点的另一种方法是右键单击要删除的特定断点,然后点击菜单选项:remove breakpoint。





解决方案4:
如果要访问存储所有断点的位置,请右键单击侧栏中的断点,单击显示断点:



然后出现一个显示所有断点的屏幕,从这里你可以完全控制brakpoint,你可以选择断点并从文件中删除。





我相信这是你想要的。



PK


There are some breakpoints in my project that for some reason can not be turned off or deleted. How can I delete these? I heard that they can be deleted by deleting a file with the extension .dsk, but I can't find that file. Where is it?

解决方案

There are 4 solutions i have provided which you can try. Sometimes all you need to do is click and drag the breakpoint one by one in your project and drag it off the screen. If that doesn't work try these options. At least one will definitely work.

Solution 1: Or the more better solution would be to turn the breakpoints off. There is a button on the top bar where the build and run button is located; on the left of it, there is a breakpoints button an image of an arrow pointing to the right is on the button. thats the button you want to click to activate/deactivate breakpoints in your project.

EDIT: Further explanation

Solution 2: If you want to delete some break points that you dont need you locate the breakpoints in your project and then click and hold on the specific breakpoint you want to get rid off, then you drag it off the sidebar; you will see your cursor change to a scrunched up paper ball, to let you know that if you let go then your object that is being held by the mouse (in this case a breakpoint) will be deleted.

Solution 3: Another way of deleting a break point is by right clicking on the specific breakpoint you want deleted and click on the menu option: remove breakpoint.

Solution 4: If you want access to the place where all break points are stored, you right click on the breakpoint in the sidebar, click on 'Reveal in Break points':

Then a screen appears which displays all break points, and from here you ahve full control over the brakpoints, where you can select the break point and delete it from the file.

I believe this is what you wanted.

PK

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

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