Breakpoint[]

❌ Doesn't work in Interactive Notebook

Category: Logic.

Pause program runtime and start a debugging session.

Syntax

Breakpoint[]

Examples

The following example loads an image, then detects cats in the image. A breakpoint runs which starts an interactive debugging session. Once exiting from the debugging session, the program continues to run.

Load["./image.jpg"]
Detect["cat"]
Breakpoint[]
If[Count[] > 4]
    Say["There are more than four cats in this image!"]

See Also

Made with ❤️ by capjamesg