How can I print to console in Swift Playgrounds on iPad?

后端 未结 3 438
南旧
南旧 2021-01-25 06:50

I would like to debug a method deep inside my \"Sources\" folder within a Swift Playground.

public func wannaDebugThis         


        
3条回答
  •  时光说笑
    2021-01-25 07:32

    While I couldn‘t find a way to modify an Empty/Blank Playground to provide console in-/output. There is the „Answers“ template, that you can use for simple console interactions.

    Another way is to use the „Interactions“ template, provided here: https://buildingrainbows.com/2018/03/13/print-to-the-console-in-swift-playgrounds-for-ipad/

提交回复
热议问题