3 ms·
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/Intel
by eludwig 12y ago
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.
- dimillian 12y agoprint and println just works for any value. But yeah, breakpoint and PO at doesn't work for debugging at the moment.
- coldtea 12y ago>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).
- emp 12y agoPlayground 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.
- deleted 12y ago[deleted]