Control Flow Anchors

Control Flow Anchors

Control flow anchors allow you to slow down and even stop Artemis as it runs your code and generates your Archive. This allows you to carefully inspect your code and monitor your Archive as it is created in real-time. This is particularly useful if you're using Artemis archives to walk someone through your code as it executes in real-time.

You can use the @stop anchor to pause the code execution until the "Continue" button is pressed:

# @stop

You can use the @delay anchor to pause the code execution for a specified number of seconds:

# @delay time=3