Browse Source

Debugging übung

fetched-on-2022-12-10
sharanjeetkaur 2 years ago
parent
commit
bac6f4ea4f
  1. 16
      .idea/workspace.xml
  2. 65
      Lerntagbuch.md

16
.idea/workspace.xml

@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="ff19f7bd-a249-4c52-a218-56cff65ae900" name="Changes" comment="ubung2" />
<list default="true" id="ff19f7bd-a249-4c52-a218-56cff65ae900" name="Changes" comment="ubung2">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Lerntagbuch.md" beforeDir="false" afterPath="$PROJECT_DIR$/Lerntagbuch.md" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -52,7 +55,7 @@
<workItem from="1667978641231" duration="1543000" />
<workItem from="1667980824243" duration="1298000" />
<workItem from="1667983119468" duration="302000" />
<workItem from="1667983506078" duration="1330000" />
<workItem from="1667983506078" duration="2640000" />
</task>
<task id="LOCAL-00001" summary="merge conflicts">
<created>1667935991746</created>
@ -75,7 +78,14 @@
<option name="project" value="LOCAL" />
<updated>1668031179750</updated>
</task>
<option name="localTasksCounter" value="4" />
<task id="LOCAL-00004" summary="ubung2">
<created>1668031270370</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1668031270370</updated>
</task>
<option name="localTasksCounter" value="5" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">

65
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
Loading…
Cancel
Save