Debug breakpoint in Swift Playground?

Solution 1:

There's no debugger so you can't add any breakpoints.

Solution 2:

Matt, I could not enter code in the comments so here is a better view of using a variable on a line by itself to "debug" it.

for index in 1...5  {
    dosomething(foo);
    foo;
}

Then you can click the eyeball on the right hand side to see a history of foo as it was modified in the loop.