MATLAB POLYSPACE 7 Guide d'installation Page 436

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 618
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 435
6 Editing and Debugging M-Files
Copying, Modifying, Disabling, and Clearing Conditional
Breakpoints
To copy a conditional breakpoint, right-click the icon in the breakpoint alley
and select Copy from the context menu. Then right-click in the breakpoint
alley at the line where you want to paste the conditional breakpoint and select
Paste from the context menu.
Modify the condition for the breakpoint in the current line by selecting
Set/Modify Conditional Breakpoint from the Debug or context men u.
Click a conditional breakpoint icon to disable it. Click a disabled conditional
breakpoint to cle ar it.
Function Alternative for Conditional Breakpoints
Use the dbstop function with appropriate arguments to set conditional
breakpoints from the Command Window, and use
dbclear to clear them. Use
dbstatus to view the breakpoints currently set, including any conditions,
which are listed in the
expression field. If no condition exists, the value in
the
expression field is [](empty). For details, see the function reference
pages:
dbstop, dbclear,anddbstatus.
Breakpoints in Anonymous Functions
There can be multiple breakpoints in an M-file line that contains anonymous
functions. There can be a breakpoint for the line itself (MATLAB stops at the
start of the line), as well as a breakpoint for each anonymous function in
that line. When you add a breakpoint to a line containing an anonymous
function, the Editor/Debugger asks exactly where in the line you want to add
the breakpoint. If there is more than one bre ak point in a lin e, the brea k point
icon is blue
.
When there are multiple breakpoints set on a line, the icon is always blue,
regardless of the status of any of the breakpoints on the line. Position the
mouse on the icon and a tooltip displays information about all breakpoints
in that line.
To perform a breakpoint action for a line that can contain multiple
breakpoints, such as Clear Breakpoint, right-click the breakpoint alley at
6-128
Vue de la page 435
1 2 ... 431 432 433 434 435 436 437 438 439 440 441 ... 617 618

Commentaires sur ces manuels

Pas de commentaire