Debugging

Download matlab eBook

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:\').

Related Examples

Stats

60 Contributors: 4
Monday, May 29, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook