News:

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

Main Menu

Load and save watch file in 12.11

Started by euzkoarima, January 18, 2013, 11:43:07 PM

Previous topic - Next topic

euzkoarima

Hi, the save/load watch file is implemented on 12.11 version ?
I'm trying using it but right click on watches panel do nothing

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!]

euzkoarima

Thanks for your answer, is there any plan to include this feature ?

MortenMacFly

Quote from: euzkoarima on January 19, 2013, 04:20:52 AM
Thanks for your answer, is there any plan to include this feature ?
I think this would be useful, so yes.

There was a patch in the bug tracker some time ago that did this...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

euzkoarima

Quote from: MortenMacFly on January 19, 2013, 08:38:46 AM
I think this would be useful, so yes.

There was a patch in the bug tracker some time ago that did this...

Great, that's good news !!

oBFusCATed

Quote from: MortenMacFly on January 19, 2013, 08:38:46 AM
There was a patch in the bug tracker some time ago that did this...
I doubt it will do the job, because there is no serialization API for the watches.

What are the requirements for such a feature?
(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!]

MortenMacFly

Quote from: oBFusCATed on January 19, 2013, 07:12:36 PM
What are the requirements for such a feature?
Save what needs to be saved for a BP, replay "adding" BPs' when loading the file. What else?

It was implemented really simple before... saving a few information to a text file... and it was one of my first contributions to C::B, IIRC... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Yes, but now there is no single Watch class, but every plugin implements its own version and can add any property it feels necessary.
Do we want to restore the properties? Do we want to load all watches to the current active plugin or do we want to load them as they were.
It is not simple as you can see.
(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!]

MortenMacFly

Quote from: oBFusCATed on January 19, 2013, 09:48:12 PM
It is not simple as you can see.
Well... there is one simple interface to GDB how you add watches. Thats all I want to save, nothing more, nothing less. It should be a simple as it was before.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

If every plugin implements it's own version, the plugins should be able to have an own function to save the watches.

oBFusCATed

Quote from: MortenMacFly on January 19, 2013, 11:21:39 PM
Well... there is one simple interface to GDB how you add watches. Thats all I want to save, nothing more, nothing less. It should be a simple as it was before.
You forget that we now have a generic debugger interface. What about the python dbg plugins or gdb/mi?

Quote from: jens on January 19, 2013, 11:30:09 PM
If every plugin implements it's own version, the plugins should be able to have an own function to save the watches.
Yes, this is the direction I'll probably take, but not now. Probably you should ping me about this is a month or two :)
(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!]

MortenMacFly

Quote from: oBFusCATed on January 20, 2013, 12:12:52 AM
Yes, this is the direction I'll probably take, but not now. Probably you should ping me about this is a month or two :)
Yes, thats true and thats also what I meant. Of course I am only talking about the one gdb plugin we have in SVN, nothing else. It had this functionality before and it seems it was useful. Especially with locals gone.

Maybe I wasn't clear enough in the first place - I am not looking for something generic nor an extension to the core, just to the debugger plugin we provide atm. Let me have a look if I find the patch again - maybe its very simple then...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

As you know I don't like non-generic solutions... The patch probably have been provided by Ollydbg.
(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!]

MortenMacFly

Quote from: oBFusCATed on January 20, 2013, 01:07:38 PM
As you know I don't like non-generic solutions...
Quote from: oBFusCATed on January 20, 2013, 12:12:52 AM
Quote from: jens on January 19, 2013, 11:30:09 PM
If every plugin implements it's own version, the plugins should be able to have an own function to save the watches.
Yes, this is the direction I'll probably take, but not now.
Hmmm.. I don't get it:

Whats the difference between what I propose and you? The patch does exactly that: Save watches for this very debugger plugin we distribute. ???
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Quote from: MortenMacFly on January 20, 2013, 01:54:22 PM
Whats the difference between what I propose and you? The patch does exactly that: Save watches for this very debugger plugin we distribute. ???
What patch? Link?
(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!]