Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 353
Aaronium112 Avatar asked Aug 06 '16 19:08

Aaronium112


People also ask

Where are Visual Studio breakpoints saved?

Visual Studio saves breakpoints in a XML file. To save the breakpoints, you just need to click on the “Export” button in breakpoint window as shown in the following figure. You can use the saved XML file for the future and you can pass the same to other developers.

How does Xcode source control work?

Overview. Source control is the practice of tracking and managing changes to your code. Manage your Xcode project with source control to keep a rich history of the changes you make, and collaborate on code faster and more effectively. Xcode simplifies source control management with its built-in support for Git.


1 Answers

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.
like image 113
rdgd Avatar answered Oct 25 '22 03:10

rdgd