MATLAB LanguageDebugging


Syntax

  • dbstop in file at location if expression

Parameters

ParameterDetails
fileName of .m file (without extension), e.g. fit. This parameter is (Required) unless setting special conditional breakpoint types such as dbstop if error or dbstop if naninf.
locationLine number where the breakpoint should be placed. If the specified line does not contain runnable code, the breakpoint will be placed on the first valid line after the specified one.
expressionAny expression or combination thereof that evaluates to a boolean value. Examples: ind == 1, nargin < 4 && isdir('Q:\').