Hi, when i trace the code by step using the debugger, the debugger sometimes failed stopping at the breakpoint but go through the breakpoint statement, causing the debugging procedure more difficult. How do i fix this problem? Thanks. peter
forgot to tell... this problem usually take place as the following:
stmt1; function_call(); stmt2; // <=== breakpoint here // intention to see the result of function call ...
Yes, that could quite likely be optimisation!
What optimisation setting are you using?
Have you examined the generated assembler, and the disassembly of this portion?
Hi, you seem don't need sleep.... :) well, i use level 8: reuse common entry code, and unfortunately, i am not familiar with its assembly code, so debugging from assembly seems hard to me.. thanks for help, i will try to read its asm code.
peter@Taiwan
Remember that this forum is world-wide. Different time zones have different sleep patterns.
Have you tried to turn off optimization before debugging? Optimization tends to reorder and regroup the generated code, resulting in very strange jumps when debugging.