Author Topic: Splitting debugger in two - specific debugger and common GUI  (Read 487006 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #180 on: March 01, 2010, 08:52:47 am »
Hi, all debugger exports, did you consider saving the breakpoint after we close a project. and load the breakpoint when loading a project?

I have done that several months ago, I nearly forget that. see here: Watches and breakpoints persistent, I'm not sure this can be easily done in the debugger branch. :D

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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #181 on: March 01, 2010, 09:21:48 am »
Morten: I've updated the svn server, probably I need to do something with the repo, will look at it tonight

Olly: I've not forgotten this feature, but I don't like the implementation! C::B needs an API to store user information per project/workspace in single file, not N files as it is now.
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #182 on: March 01, 2010, 09:43:06 am »
see here: Watches and breakpoints persistent, I'm not sure this can be easily done in the debugger branch. :D
I still have that merged (as far as possible) with the debugger branch in my local copy. It's not forgotten, just pending as it needs some re-write.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #183 on: March 03, 2010, 01:50:43 am »
Mismatched FS module version for 'fsfs': Found 1.6.6 expected 1.6.9.

My svn server needed a restart after the update, should work now  8)
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #184 on: March 03, 2010, 07:37:55 am »
should work now  8)
Yes, it's back again.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #185 on: March 03, 2010, 05:36:44 pm »
And another patch: http://smrt.is-a-geek.org/codeblocks/dbg_refactor0012.patch

1. Implemented Set Next statement/Jump to cursor, yey
2. Fixed a bug in the code for adding breakpoints
3. Made the watches window more user friendly
4. Fixed a redraw issue in watches window

Morten: Do you have a pause icon in the same style as the other icons in the debugger set?
(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 Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #186 on: March 03, 2010, 07:29:18 pm »
1. Implemented Set Next statement/Jump to cursor, yey

That sounds really nice :D

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #187 on: March 04, 2010, 04:08:18 am »
hope it can be merged into trunk as soon as possible. :D :D :D
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #188 on: March 04, 2010, 09:28:20 am »
You're welcome to test it  :lol:  :P
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #189 on: March 06, 2010, 09:23:54 pm »
Little addition to the previous patch: http://smrt.is-a-geek.org/codeblocks/dbg_refactor0012.1.patch

1. Implemented Set Next statement/Jump to cursor, yey
2. Fixed a bug in the code for adding breakpoints
3. Made the watches window more user friendly
4. Fixed a redraw issue in watches window
New: 5.  Fixed bug: "adding breakpoint while running doesn't hide the current position marker"
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #190 on: March 08, 2010, 02:54:01 pm »
Morten: Do you have a pause icon in the same style as the other icons in the debugger set?
No, but I think it should be orange and have the typical pause sign as you know it from CD players, like:

[ " ]

:lol:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #191 on: March 08, 2010, 04:03:18 pm »
Agreed  :lol: now we need someone to do it :)
Where have you got the other icons in the new set?
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #192 on: March 08, 2010, 04:19:59 pm »
Where have you got the other icons in the new set?
I've forgotten. It was either from a patch (search for closed patches assigned to me in the patch tracker) or (even worse) from the forums. But I think we should start with re-colouring the existing icon from green to orange... this can be easily done.- ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #193 on: March 08, 2010, 04:24:41 pm »
OK, I'll see what I can do.

Another question:
What do you think is needed in order to get this branch merged in trunk?
The major feature that is missing (user visible) is "local variables/function arguments", but for that one I'll need to modify C::B a lot, because I want them to be in separate windows, not as before in the watches window.
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #194 on: March 11, 2010, 11:19:46 pm »
OK, I have an icon:

22x22: http://smrt.is-a-geek.org/codeblocks/new_icon/dbgpause.png
16x16: http://smrt.is-a-geek.org/codeblocks/new_icon/16x16/dbgpause.png
patch: http://smrt.is-a-geek.org/codeblocks/new_icon/new_icon.patch

p.s. the icons look very bad with a darker theme.

http://smrt.is-a-geek.org/codeblocks/new_icon/icon_bug.png // notice the halos on the Run, Build And Run and Start/Continue icons

Would you accept a fix for them ?
(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!]