I set two breakpoints in my code. The first one works well, but the second one become a excalmatory mark,when I go into debug mode.
Moreover, I have a error in Command window: *** error 35: undefined line number
This can be clearly seen in the following picture: www.dropbox.com/.../breakpoints.png
Thank you.
Thank you. That is it. After turning off the code optimization, I can set breakpoints in every code line.
The method of turning off code optimization is listed below: In "Project->options for target configuration->C/C++", change "Optimization" from "Level 3" to "Level 0".
The meaning of "Level 3" and "Level 0" can be found in this link: http://www.keil.com/support/man/docs/uv4/uv4_dg_adscc.htm