
Use the Basic RUN Command / Set Some Breakpoints
2-16
Use the basic RUN command
The debugger provides you with several ways of running code, but it has one
basic run command.
Run your entire program:
run
The label in the COMMAND window changes
to COMMAND [RUNNING...] to indicate
that your program is executing.
Entered this way, the command basically means “run forever”. You may not
have that much time!
This isn’t very exciting; halt program execution:
Set some breakpoints
When you halted execution in the previous step, you should have seen
changes in the display similar to the changes you saw when you entered
go
main earlier in the tutorial. When you pressed
ESC
, you had little control over
where the program stopped. Knowing that information changed was nice, but
what part of the program affected the information?
This information would be much more useful if you picked an explicit stopping
point before running the program. Then, when the information changed, you’d
have a better understanding of what caused the changes. You can stop
program execution in this way by setting
software breakpoints.
Important!
This lesson assumes that you’re displaying the contents of
sample.c in the FILE window. If you aren’t, enter:
file sample.c
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...