The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

STOP Method (Debugger)

Stops execution as if the code hits an error.


[Ok :=] STOP   

Property Value/Return Value

Type: Boolean

true if the debugger stops execution; otherwise, false.

If you omit this optional return value and if the break is not set successfully, then a run-time error occurs. If you include the return value, then you must handle any errors.

See Also

Debugger Methods