using gdb ,we can break program when variable is changed .
we just use the cmd “watch a” .
a =0 firstly,then when a is changed into 1,the program will be break running automaticly.
how can i do this in codeblocks??
codeblocks can watch the change of variable .the colour will be changed when the variable is changed . but the programme will not be break automaticly !!
thank u for your help .