News for hackers. Stuff that matters.
Re:Show HN: SwiftHN, a Hacker News reader in Swift by eludwig on Friday July 18, 2014 @08:49PM (#8056292)
Debugging Swift is terrible right now in Xcode, unless I am not doing it right. Some values can be seen, others are inexplicably missing. Coming from Java/IntelliJ, it's a hopeless mess.

I hope that Xcode/Swift gets better in the debugging department soon. NSLog() is a rough way to see values. It's just so 1996.

Re:Show HN: SwiftHN, a Hacker News reader in Swift by coldtea on Saturday July 19, 2014 @06:44AM (#8057156)
>I hope that Xcode/Swift gets better in the debugging department soon. NSLog() is a rough way to see values. It's just so 1996.

Well, XCode also has the Swift Playground, with live values updating next to your code etc. Java/IntelliJ don't have that (of course XCode's implementation is beta too, and might not work on some cases).

Re:Show HN: SwiftHN, a Hacker News reader in Swift by emp on Saturday July 19, 2014 @02:15PM (#8058237)
Playground however is just a place for playing with snippets of code. And experiment and learn environment. If you have a bug in a running app, it's just not possible to recreate the problem except for the simplest of apps.
Re:Show HN: SwiftHN, a Hacker News reader in Swift by dimillian on Saturday July 19, 2014 @02:52AM (#8056890)
print and println just works for any value. But yeah, breakpoint and PO at doesn't work for debugging at the moment.