Now that we’ve got Claude Code up and working, we can turn back to where
we left Yesterday’s Weather at the end of the previous lesson. Although
Cursor had written the code required to satisfy the spec, on loading
the weather is wrong—it comes back with null results.
We can use the same approach to debugging with Claude Code that we used
before with Cursor. We’ll explain the problem and then see what it suggests.
In the particular instance there is a problem with the
Open Meteo API.
One of the tools we’ll be able to use will be to send Claude Code off to
read the API docs, and attempt to fix the issue.
Slash Commands
When using Claude Code, there are some special commands you can access which
start with a slash. Probably the most important is /cost, which will give
you a summary of how much you’ve spent in the current session, with a breakdown
of what models you’ve been using and the number of tokens for each of them.
See forum comments
This content was released on Jul 18 2025. The official support period is 6-months
from this date.
We left the previous lesson with an issue in Yesterday’s Weather.
How does debugging work in Claude Code, and could we use it to
diagnose and fix the issue?
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Installation
Next: Fixing the Weather API
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.