print() vs debugPrint() in swift

后端 未结 4 1993
迷失自我
迷失自我 2020-12-24 10:50

This might be a simple question but because of clear understanding between print() and debug() print in swift I am unable to understand where to use each one.

4条回答
  •  执念已碎
    2020-12-24 11:08

    if you both implementation CustomDebugStringConvertible and CustomStringConvertible protocol, then debugPrint method default use debugDescription content, and print method default use description content.

提交回复
热议问题