← Back to CoursesComputer Science: Beginner

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Debugging and Problem Solving

Manual: General · Subject: Computer Science

Teach how to find, understand, and fix bugs in programs using systematic thinking.

When programs go wrong

What is a bug?

A bug is an error in a program that causes it to behave incorrectly. Debugging is the process of finding and fixing bugs.

A simple debugging process

  1. 1

    Step 1: Observe the wrong behavior.

  2. 2

    Step 2: Form a guess about the cause.

  3. 3

    Step 3: Test the guess and change the code if needed.

💡

Bugs are normal

Every programmer makes mistakes. Debugging is a normal and important part of programming.

What does debugging mean?

What is a bug?

Common debugging habits

Useful habits include reading code carefully, checking one change at a time, using examples, and asking what the program was supposed to do.

Which is a good debugging habit?

Why is it helpful to test one change at a time?