From bac6f4ea4f60115a20490120f303f36939604eba Mon Sep 17 00:00:00 2001 From: sharanjeetkaur Date: Tue, 15 Nov 2022 20:13:39 +0100 Subject: [PATCH] =?UTF-8?q?Debugging=20=C3=BCbung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 16 ++++++++--- Lerntagbuch.md | 65 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 3 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ecb2211..e50c7e3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,10 @@ - + + + + diff --git a/Lerntagbuch.md b/Lerntagbuch.md index 53ef98d..4ed1501 100644 --- a/Lerntagbuch.md +++ b/Lerntagbuch.md @@ -19,4 +19,69 @@ ich lerne git - commit and pushed the Branch. - created Merge request for the Branch to merge in main Branch - merged the Branch. +### Debugging übung +- enter an integer number: 5 +input: 5, Schleifenvariable: 2, Ergebnis 1 +input: 5, Schleifenvariable: 3, Ergebnis 2 +input: 5, Schleifenvariable: 4, Ergebnis 1 +number 5 passed check: true +Process finished with exit code 0 + + +- enter an integer number: 121 +input: 121, Schleifenvariable: 2, Ergebnis 1 +input: 121, Schleifenvariable: 3, Ergebnis 1 +input: 121, Schleifenvariable: 4, Ergebnis 1 +input: 121, Schleifenvariable: 5, Ergebnis 1 +input: 121, Schleifenvariable: 6, Ergebnis 1 +input: 121, Schleifenvariable: 7, Ergebnis 2 +input: 121, Schleifenvariable: 8, Ergebnis 1 +input: 121, Schleifenvariable: 9, Ergebnis 4 +input: 121, Schleifenvariable: 10, Ergebnis 1 +input: 121, Schleifenvariable: 11, Ergebnis 0 +number 121 passed check: false +Process finished with exit code 0 + +- After breakpoint line 35 +nextInt = 5 +I = 2 +Result = 2 + + +- NextInt = 8 +I = 2 +Result = 0; + +- After debugging on line 47 + +message = „ enter an integer number“ +nextInt = 5(type by me) + + +#### Übung2 + +- enter an integer number: 5 +number 5 passed check: false +Process finished with exit code 0 + +- enter an integer number: 9 +number 9 passed check: false +Process finished with exit code 0 + +- After breakPoint line 40 +nextInt = 3 +Count = 3 + +- Enter the integer 45 +nextInt = 23 +Count = 3 + +- Anzahl der Einträge = 2 +After der stopover debugger steht Zeile 23 + +- Anzahl der Einträge in der Debug View + +- After step into zeile 24 + +- isCheckPassed = false