News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to keep breakpoints and bookmarks

Started by rogeriodec, May 20, 2018, 01:46:12 AM

Previous topic - Next topic

rogeriodec

Currently when I close a project, all my bookmarks and breakpoints are lost.
Is there any way to prevent this?
Windows 8.1

SVN 11400

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Pecan

The plugin BrowseTracker saves bookmarks but not breakpoints.

rogeriodec

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?
Windows 8.1

SVN 11400

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Pecan

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.



BlueHazzard

Note: You have to hit "save all" before closing, or nothing will get saved

rogeriodec

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.
Windows 8.1

SVN 11400

sodev

Quote from: rogeriodec on May 22, 2018, 11:58:58 PM
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

rogeriodec

Windows 8.1

SVN 11400

BlueHazzard

Is there a ticket for the breakpoints?

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ollydbg

I have partially implemented this feature around year 2009, see this discussion:
Some thoughts on doing breakpoints persistent
And this patch: Patch 2775 - Code::Blocks History

But as it is not a common API related implementation. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

rogeriodec

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.
Windows 8.1

SVN 11400