Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rogeriodec on May 20, 2018, 01:46:12 am

Title: How to keep breakpoints and bookmarks
Post by: rogeriodec on May 20, 2018, 01:46:12 am
Currently when I close a project, all my bookmarks and breakpoints are lost.
Is there any way to prevent this?
Title: Re: How to keep breakpoints and bookmarks
Post by: oBFusCATed on May 20, 2018, 02:47:05 am
Nope.
Title: Re: How to keep breakpoints and bookmarks
Post by: Pecan on May 20, 2018, 05:06:28 pm
The plugin BrowseTracker saves bookmarks but not breakpoints.
Title: Re: How to keep breakpoints and bookmarks
Post by: rogeriodec on May 21, 2018, 01:12:16 am
Thank you.
Despite yet another of obfuscated grumpy responses  >:(, it is good to know that there is a solution.
I also see that you are the developer, congratulations!
However I can not make it work. I just managed to get his toolbar to appear, but nothing works.
However it appears as an activated plugin.
How do I solve this?
Title: Re: How to keep breakpoints and bookmarks
Post by: oBFusCATed on May 21, 2018, 02:21:11 am
Despite yet another of obfuscated grumpy responses  >:(
OK, note taken.
Title: Re: How to keep breakpoints and bookmarks
Post by: Pecan on May 22, 2018, 06:50:38 pm
Enable Bookmarks under Settings/Editor/Browsetracker.
Bookmarks are automatically saved when the project is closed, and restored when the project is opened.

Note: Debugger breakpoints are *not* saved.


Title: Re: How to keep breakpoints and bookmarks
Post by: BlueHazzard on May 22, 2018, 06:53:15 pm
Note: You have to hit "save all" before closing, or nothing will get saved
Title: Re: How to keep breakpoints and bookmarks
Post by: rogeriodec on May 22, 2018, 11:58:58 pm
Thank you Pecan and BlueHazzard!
I confess I was almost giving up CodeBlocks, but your attention made me come back to believe in this great project. Thank you again.
Title: Re: How to keep breakpoints and bookmarks
Post by: sodev on May 23, 2018, 12:45:10 am
I confess I was almost giving up CodeBlocks, but your attention made me come back to believe in this great project.
Another grumpy statement from rogeriodec
Title: Re: How to keep breakpoints and bookmarks
Post by: rogeriodec on May 23, 2018, 01:34:15 am
touché !  ;D
Title: Re: How to keep breakpoints and bookmarks
Post by: BlueHazzard on May 24, 2018, 12:19:53 am
Is there a ticket for the breakpoints?
Title: Re: How to keep breakpoints and bookmarks
Post by: oBFusCATed on May 24, 2018, 12:42:27 am
BlueHazzard:
Yes, rogeriodec added one, probably there are others about the same thing.
Just keep in mind that a patch won't be accepted if it doesn't provide and use a common api which makes it possible to store stuff per project or per workspace.
And if the api stores stuff in separate files it stores them in a single .something folder.
Title: Re: How to keep breakpoints and bookmarks
Post by: ollydbg on May 24, 2018, 02:57:56 pm
I have partially implemented this feature around year 2009, see this discussion:
Some thoughts on doing breakpoints persistent (http://forums.codeblocks.org/index.php/topic,10704.msg73335.html#msg73335)
And this patch: Patch 2775 - Code::Blocks History (http://alpha0010.github.io/cb-history/patches/2775.html)

But as it is not a common API related implementation. :)
Title: Re: How to keep breakpoints and bookmarks
Post by: rogeriodec on May 24, 2018, 07:34:20 pm
I am happy to realize that this question is pertinent. From the point of view of the user, it's a simple question: the user wants the environment to be exactly the same as when the project was closed.
One example that was fixed in the last nightly build was about keeping the folds.
But this goes for everything, folds, breakpoints, bookmarks, watches, anyway, as I said, exactly as it was before closing the project.