Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: vfdff on April 05, 2009, 10:44:21 am

Title: how to debug with Code::Blocks in step mode ?
Post by: vfdff on April 05, 2009, 10:44:21 am
I can't watch the value int the watch ? only seeing some '?' with the value  same as 
i = No symbol 'i' in current context

my code:
/*
 */

#include <avr/io.h>

int main(void)
{

    // Insert code
    int i = 34;
    int tt = 2*i;

    i= tt+3;
    i <<= 2;

    while(1)
    {
        i++;
    }
    ;

    return 0;
}
while in which can be seen some "i" in the context
Title: Re: how to debug with Code::Blocks in step mode ?
Post by: Jenna on April 05, 2009, 11:27:04 am
A little less information.

Which OS are you on, which version of C::B do you use, which compiler (and version) and which debugger and version ?

Can you give the steps to reproduce the problem (works without problems for me) ?
Title: Re: how to debug with Code::Blocks in step mode ?
Post by: vfdff on April 08, 2009, 07:30:54 am
I use it on my windows xp operation,and choose avr project to create ,and compile with avr gcc ?
Title: Re: how to debug with Code::Blocks in step mode ?
Post by: ollydbg on April 15, 2009, 01:31:43 pm
I use it on my windows xp operation,and choose avr project to create ,and compile with avr gcc ?

I'm not sure AVR GCC can debug?
Why not try MinGW?
Title: Re: how to debug with Code::Blocks in step mode ?
Post by: vfdff on April 18, 2009, 12:00:01 pm
yeah, it runs all right with GCC