Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
swift3:デバッグ出力してみる
override func viewDidLoad() {
super.viewDidLoad()
let debugMsg1 = "ただ出力してみる"
let debugMsg2 = "file名 ="
let debugMsg3 = "行番号 ="
let debugMsg4 = "メソッド名 ="
print(debugMsg1)
print(debugMsg2, #file)
print("\(debugMsg3)", #line)
print("\(debugMsg4) \(#function)")
print(#column, "列目?")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment