Skip to content

Instantly share code, notes, and snippets.

@konp503
Last active March 17, 2017 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konp503/3c865cc09335e6c74aed474fe53471e5 to your computer and use it in GitHub Desktop.
Save konp503/3c865cc09335e6c74aed474fe53471e5 to your computer and use it in GitHub Desktop.
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