User forums > General (but related to Code::Blocks)
how to debug with Code::Blocks in step mode ?
(1/1)
vfdff:
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
Jenna:
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) ?
vfdff:
I use it on my windows xp operation,and choose avr project to create ,and compile with avr gcc ?
ollydbg:
--- Quote from: 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 ?
--- End quote ---
I'm not sure AVR GCC can debug?
Why not try MinGW?
vfdff:
yeah, it runs all right with GCC
Navigation
[0] Message Index
Go to full version