Installation guide

6 Editing and Debugging M-Files
Breakpoints are gray for either of these reasons:
Thefilehasnotbeensavedsincechangesweremadetoit. Savethefile
to make breakpoints valid. The gray breakpoints beco me red, indicating
they are now valid. Any gray breakpoints that were entered at invalid
breakpoint lines automatically move to the n ex t valid breakpo int line with
thesuccessfulfilesave.
T he re is a syntax error in the file. When you set a breakpoint, an error
message appears indicating where the syntax error is. Fix the syntax error
and save the file to make breakpoints valid.
Function Alternative for Setting Breakpoints
To set a breakpoint using the debugging functions, use dbstop.Forthe
example, type
dbstop in collatzplot at 10
dbstop in collatzplot at 11
dbstop in collatzplot at 12
6-110