Last active
March 17, 2017 23:10
-
-
Save konp503/3c865cc09335e6c74aed474fe53471e5 to your computer and use it in GitHub Desktop.
swift3:デバッグ出力してみる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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