News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

The 18 December 2010 build (6900) DEBUGGER BRANCH version is out.

Started by killerbot, December 19, 2010, 10:05:15 AM

Previous topic - Next topic

MortenMacFly

Quote from: killerbot on January 13, 2011, 11:31:11 AM
@Martin : can you perform a merge : trunk -> debug branch
Sorry, I read this a little late (now). I've taken the appropriate steps.
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]

killerbot

Quote from: killerbot on January 06, 2011, 12:57:18 PM
just found a debugger bug with the watches. No refresh of values when watch window has been closed in between.

Input :
simple console application , this is the code :

#include <iostream>


int main()
{
int foo  = 0;
foo = foo + 20;
    std::cout << foo << std::endl;


double result = foo / 1.5;
std::cout << result << std::endl;
    return 0;
}


put a breakpoint on line "foo = foo + 20;"

Let's start with a happy path :
- start debugger
- when breakpoint hit : watch "foo", and make the watches window visible
- step to next statement ==> foo is nicely updated in the watch window (20)

the BUG path :
- start debugger
- when breakpoint hit : watch "foo", and make the watches window visible (in case not yet watched and visible)
- now close the watch window !!!!!!!!!!!!!
- step to next statement
- make watch window visible again ===> BUG : foo is not updated in the watch window, is still on 0, and not on 20
NOTE : tooltip does show the new value.

So it seems a refresh is not being carried out !!!

fix confirmed in rev 6922