home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / LANG.DI$ / DBSTOP.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  1.4 KB  |  33 lines

  1. %DBSTOP    Set breakpoint in MATLAB M-file function.
  2. %    The DBSTOP command is used to temporarily stop the execution of an
  3. %    M-file function and give the user an opportunity to examine the local
  4. %    workspace.  Issuing a DBSTOP command is equivalent to editing the
  5. %    M-file function and inserting a KEYBOARD command in front of the line
  6. %    number specified.  There are four forms to this command.  They are:
  7. %
  8. %    DBSTOP AT lineno IN Mfilename
  9. %    DBSTOP IN Mfilename
  10. %    DBSTOP IF ERROR
  11. %    DBSTOP IF NANINF  or  DBSTOP IF INFNAN
  12. %
  13. %    where lineno is a line number within M-file function Mfilename.
  14. %
  15. %    The AT, IN and IF keywords are optional.
  16. %
  17. %    The first form stops at the specified line number in the M-file.
  18. %    The second form stops at the first executable line in the M-file.
  19. %    The third form causes a stop in any M-file function causing a
  20. %    run-time error.  (Syntax errors are not handled by the debugger.)
  21. %    You cannot resume M-file execution after a run-time error.
  22. %    The fourth form causes a stop in any M-file function where an
  23. %    an infinite value (Inf) or Not-a-Number (NaN) is detected.
  24. %    The DBSTOP command is the only way to enter MATLAB's debug mode.
  25. %    In MATLAB's debug mode, any MATLAB command is allowed at the prompt.
  26. %
  27. %    See also DBCONT, DBSTEP, DBCLEAR, DBTYPE, DBSTACK, DBUP, DBDOWN,
  28. %    DBSTATUS, and DBQUIT.
  29.  
  30. %    Steve Bangert, 6-25-91. Revised, 1-3-92.
  31. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  32. %    Built-in function.
  33.