The best way to find bugs and understand how code runs is debugging. In this episode we add breakpoints in Eclipse, start the app with Debug As > Java Application, and step through code line-by-line with F6 (Step Over) and F5. We watch how newly created objects have default values (null, 0), how variables change as values are assigned, and how the program jumps into a method call and returns after the method finishes.
Sıfırdan Spring Boot serisinin 4. bölümü Opendart Akademi YouTube kanalında yayında. Bu seri, canlı Java Spring Boot eğitimimizin ders kayıtlarından hazırlanıyor; Java'nın temelinden başlayıp Spring Boot'a doğru ilerliyoruz.
▶ Watch the lesson on YouTubeAll episodes in the series
What’s in this lesson?
- 00:00 Introduction
- 00:03 Why debugging matters — logical vs. syntax errors
- 00:48 Adding a breakpoint (line breakpoint)
- 01:28 Running the app in debug mode (Debug As / bug icon)
- 02:20 Debug perspective: the code's "operating table"
- 02:54 Stepping with F6 (line-by-line) and F5 (step into)
- 03:16 How the compiler reads code — how objects are created in memory
- 04:16 Default values of variables: null and 0
- 05:20 Watching variables change as values are assigned
- 06:48 How the program goes into a method call and returns
- 08:00 Benefits of debugging
- 08:22 How Java knows a statement ended — the semicolon
- 08:51 Closing
Opendart Akademi
Learn Spring Boot with live instructor-led classes
These videos are recordings from our Java Spring Boot course. The full course covers Java, Spring Boot, REST APIs, databases and real projects; you can ask the instructor when you get stuck.
← Previous episode: Defining Methods and Creating Objects with new in Java · Playlist: Spring Boot from Scratch · Subscribe on YouTube
Instructor: İbrahim Gökyar (Opendart Akademi)



