Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Antoni Piotrowski
3,139 PointsWeather app broke randomly?
Hi,
in the weather app tutorial, just before the part where error handling comes into play, my app has seemed to stop working.
The app will load, and then immediately crash. This only happens when I'm connected to the internet so I guess its a problem with the way the data from forecast is coming in or being handled or something. The error tells me to look at my init under my Current struct, but I'm not sure whats going on. If I "continue program execution" it works perfectly until I have to refresh.
I'm not sure which code I should paste into here honestly because I'm not 100% sure what's going on. Ideas?
1 Answer
Nathan F.
30,773 PointsHm, do you have an actual debug error you can share with us? Check in those lines of code and look carefully for any breakpoints you may have intentionally or accidentally added. The program might just be pausing execution at that point in the code due to a breakpoint. I've made this mistake a few times before.
Antoni Piotrowski
3,139 PointsAntoni Piotrowski
3,139 PointsHahaha you're 100% right. I accidently made two breakpoints in my init() and it was pausing the app.
Thanks so much!