Hello everyone,
For the following code, I can not set breakpoint in release mode, but the
same command in WinDbg works fine in debug mode. Anything wrong?
Here is my Windbg command and output in release mode and source codes. I
have tested in release mode breakpoint at foo does not take effect, but in
debug mode it takes effect.
0:000> bp foo
Bp expression 'foo' could not be resolved, adding deferred bp
0:000> bp main
0:000> bl
0 eu 0001 (0001) (foo)
1 e 00000001`40001000 0001 (0001) 0:**** Test64bitDebug!main
int foo (int a, int b)
{
return a+b;
}
int main()
{
int a1 = 100;
int b1 = a1 + 100;
a1 = foo (a1, b1);
return 0;
}
thanks in advance,
George