We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
Remember that not all 'C' source lines produce executable code in any case - and some lines which could produce executable code may get optimised away...
The dark grey in the left margin indicates where there is executable code...
http://www.keil.com/support/man/docs/uv4/uv4_ui_editormarks.htm
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