Hit Breakpoint running Playground

Hi there,


i have added a playground to my project workspace, compiled my project to a framework target and imported it to my playground. Everything runs fine. I can make instances of my classes and run methods from them, but set breakpoints in my project are not hitten. Is there any possibility to get hit the breakpoints in my project?


Many thanks

Replies

AFAIK, there are no breakpoints in Playground. Is it what you are looking for ?

Is there any possibility to get hit the breakpoints in my project?

Playgrounds don’t support breakpoint. I usually solve this problem by creating another target in my app and then debugging my framework in that context. I try to use a test target for this, so I can debug my framework while I’m adding unit tests for it.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Has anything changed about this? I'm actually in Playground, not Playground in Xcode, and I am able to set breakpoints in a file in the Source folder, but code execution doesn't stop at the breakpoints. I know the code runs to those points, because there are print statements that print into the debug area that are placed between those breakpoints.