aaronium112
aaronium112

Reputation: 3088

How to Save Your Breakpoints so they are part of the Source Control committed Projects

Do you know how to backup your Xcode breakpoints using Source Control? Lately I have been using a lot of breakpoints to print out which part of the code fired. I had some trouble with a project and had to restore from my online Git repo and lost 85 breakpoints which really sucks. I had the same issue when I tried to share the project with another developer.

Here's a screen shot of what I mean about printing things with breakpoints. enter image description here

The unchecked boxes here may be the answer but I don't know. enter image description here

If you could please enlighten me that would be helpful. Thank you.

Upvotes: 6

Views: 1805

Answers (1)

rdgd
rdgd

Reputation: 1446

I was surprised to find that sharing breakpoints is actually a feature of the IDE. Here is some Apple documentation on the matter.

From the article:

  1. In the breakpoint navigator, Control-click the breakpoint.
  2. From the shortcut menu, choose Share Breakpoint.

Upvotes: 6

Related Questions