User forums > Using Code::Blocks

Debugger: Watches in nightlies

(1/2) > >>

Rosch:
Hi...

Occassionally I am using CB. Now I wanted to take a deeper look into it so I downloaded the latest nightly (20121023). I did set up a test project and compiled it using gcc. So far so good. Then I started to debug it. Basically it worked also.

But than I got very surprised. The automatic display of local variables and function call parameters in the watches window has been gone!!!

Where are they now?
Are they somewhere else now?
I have to add all vars I want to watch manually to the watches window. Absolutely not nice.

I searched the wiki (http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks). There is a statement from April 2012 saying:


--- Quote ---"In latest nightly builds: The automatic inclusion of local variables and function arguments have not being reimplemented. Sorry about the inconvenience. "
--- End quote ---

When do the local vars/function params are coming back?
Or are they somewhere else where I couldn't find them up to now?
This way I find the debugger interface barely useable.

Thanks for your help,

Roland

oBFusCATed:

--- Quote from: Rosch on October 24, 2012, 11:10:27 am ---When do the local vars/function params are coming back?

--- End quote ---
When someone decides to reimplement them.  ::) 8)


--- Quote from: Rosch on October 24, 2012, 11:10:27 am ---This way I find the debugger interface barely useable.

--- End quote ---
I'm sure you've not used the old interface for something more complex.  ;D

Adding watches in the new interfaces is relatively easy:
1. Select the expression in the editor, right click, add watch
2. Select the empty field at the bottom, type the expression you want to watch, hit enter

Rosch:

--- Quote from: oBFusCATed on October 24, 2012, 11:58:56 am ---
--- Quote from: Rosch on October 24, 2012, 11:10:27 am ---When do the local vars/function params are coming back?

--- End quote ---
When someone decides to reimplement them.  ::) 8)

--- End quote ---
This might be a good idea...


--- Quote from: oBFusCATed on October 24, 2012, 11:58:56 am ---
--- Quote from: Rosch on October 24, 2012, 11:10:27 am ---This way I find the debugger interface barely useable.

--- End quote ---
I'm sure you've not used the old interface for something more complex.  ;D

Adding watches in the new interfaces is relatively easy:
1. Select the expression in the editor, right click, add watch
2. Select the empty field at the bottom, type the expression you want to watch, hit enter

--- End quote ---
You are right it IS easy BUT annoying and takes time. Sure it depends on the workflow habbits.
In the past I mainly used the watches windows BECAUSE it was showing the local vars/parameters.
IMHO it is very convenient to see all available local vars in the current scope. Elsewise you always have to move the mouse over the var and wait for the tooltip timeout.

I use the "see all local vars" feature all day. If the old concept of showing local vars/parameters breaks the concept of the watches at all maybe the local vars/parametes should get an own windows - like eg. it is the case in insight. There watches and local vars are seperate windows which automatically get updated after each step of execution.

Roland

oBFusCATed:

--- Quote from: Rosch on October 24, 2012, 12:55:41 pm ---There watches and local vars are seperate windows which automatically get updated after each step of execution.

--- End quote ---
This is the exact problem. Adding another window. Currently there are some limitations in the wx's docking API, which prevent moving one window from one notebook to another.
I've seen that wx2.9 has this feature, so someday we can do something about this missing local variables feature. Until then probably nothing would be done.

Rosch:

--- Quote from: oBFusCATed on October 24, 2012, 01:24:06 pm ---
--- Quote from: Rosch on October 24, 2012, 12:55:41 pm ---There watches and local vars are seperate windows which automatically get updated after each step of execution.

--- End quote ---
This is the exact problem. Adding another window. Currently there are some limitations in the wx's docking API, which prevent moving one window from one notebook to another.
I've seen that wx2.9 has this feature, so someday we can do something about this missing local variables feature. Until then probably nothing would be done.

--- End quote ---

"someday" this sounds like very distant future.... When I dare to read between the lines this means unplanned not forseeable future... No chance to see this in the next year or maybe even later....

So the problem is that you cannot add a new dockable window for that thing... Have I got you right? Maybe it would be a viable tradeoff to turn eg. the assembly window in a normal window (like the FPU status) and bring in a local vars window instead? (I never developed with wxwidgets so I am of no help here). But I believe the local vars view is an essential feature for the debugging interface which should not easily be sacrificed. Or ... am I ... alone with this opinion.... ?

Roland

Navigation

[0] Message Index

[#] Next page

Go to full version