From 1a891f4a41fdfa7529d3e2ea1a15908de7af0385 Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Tue, 20 Jul 2021 17:04:40 +0200 Subject: [PATCH] Fixed line numbers for 'debug' task description https://github.com/BruceEckel/AtomicKotlinExamples/issues/18 --- .../Expressions & Statements/Exercise 4/task.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Programming Basics/Expressions & Statements/Exercise 4/task.md b/Programming Basics/Expressions & Statements/Exercise 4/task.md index 97d10db7..d5117cea 100644 --- a/Programming Basics/Expressions & Statements/Exercise 4/task.md +++ b/Programming Basics/Expressions & Statements/Exercise 4/task.md @@ -21,9 +21,17 @@ the following: - Press &shortcut:ToggleLineBreakpoint;. -Set breakpoints on lines 4 and 5. Then begin debugging the program again and -notice how it stops at the first breakpoint. The debug window below the screen -shows you the values of all the variables. Continue the process by clicking on +Set breakpoints on lines 6 and 7: + +```kotlin +x = 2 +println(x) +``` + +Then begin debugging +the program again and notice how it stops at the first breakpoint. +The debug window below the screen shows you the values of all the variables. +Continue the process by clicking on `Resume program` on the left of the debug window or pressing &shortcut:Resume;. Notice how the value of the variable `x` changes after the assignment.