Debugger

If you want to log program state during debugging, use non-suspending breakpoints. Select the expression that you want to log, hold Shift, and click the gutter at the line where the expression should be logged.

In the example, my_car.brake() will be logged upon reaching line 44.

Non-suspending breakpoint