Author Topic: How to keep breakpoints and bookmarks  (Read 815 times)

Offline rogeriodec

  • Multiple posting newcomer
  • *
  • Posts: 50
How to keep breakpoints and bookmarks
« 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?
Windows 8.1

SVN 11400

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11128
    • Travis build status
Re: How to keep breakpoints and bookmarks
« Reply #1 on: May 20, 2018, 02:47:05 am »
Nope.
(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!]

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2102
Re: How to keep breakpoints and bookmarks
« Reply #2 on: May 20, 2018, 05:06:28 pm »
The plugin BrowseTracker saves bookmarks but not breakpoints.

Offline rogeriodec

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: How to keep breakpoints and bookmarks
« Reply #3 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?
Windows 8.1

SVN 11400

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11128
    • Travis build status
Re: How to keep breakpoints and bookmarks
« Reply #4 on: May 21, 2018, 02:21:11 am »
Despite yet another of obfuscated grumpy responses  >:(
OK, note taken.
(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!]

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2102
Re: How to keep breakpoints and bookmarks
« Reply #5 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.



Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 2022
Re: How to keep breakpoints and bookmarks
« Reply #6 on: May 22, 2018, 06:53:15 pm »
Note: You have to hit "save all" before closing, or nothing will get saved

Offline rogeriodec

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: How to keep breakpoints and bookmarks
« Reply #7 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.
Windows 8.1

SVN 11400

Offline sodev

  • Almost regular
  • **
  • Posts: 166
Re: How to keep breakpoints and bookmarks
« Reply #8 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

Offline rogeriodec

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: How to keep breakpoints and bookmarks
« Reply #9 on: May 23, 2018, 01:34:15 am »
touché !  ;D
Windows 8.1

SVN 11400

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 2022
Re: How to keep breakpoints and bookmarks
« Reply #10 on: May 24, 2018, 12:19:53 am »
Is there a ticket for the breakpoints?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11128
    • Travis build status
Re: How to keep breakpoints and bookmarks
« Reply #11 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.
(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!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5085
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How to keep breakpoints and bookmarks
« Reply #12 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
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.

Offline rogeriodec

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: How to keep breakpoints and bookmarks
« Reply #13 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.
Windows 8.1

SVN 11400