Pascal Schneider
1 year ago
2 changed files with 111 additions and 0 deletions
-
110Debugging.md
-
1Lerntagebuch.md
@ -0,0 +1,110 @@ |
|||||
|
### Uebung1 |
||||
|
|
||||
|
# Vor entfernen der "slashes" |
||||
|
|
||||
|
enter an integer number: 5 |
||||
|
number 5 passed check: truefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_86590/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 10 |
||||
|
number 10 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_86590/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 15 |
||||
|
number 15 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_86590/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 2 |
||||
|
number 2 passed check: truefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_86590/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
|
||||
|
|
||||
|
# Nach entfernen der "slashes" |
||||
|
|
||||
|
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: truefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_86590/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 10 |
||||
|
input: 10, Schleifenvariable: 2, Ergebnis 0 |
||||
|
number 10 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_86590/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 15 |
||||
|
input: 15, Schleifenvariable: 2, Ergebnis 1 |
||||
|
input: 15, Schleifenvariable: 3, Ergebnis 0 |
||||
|
number 15 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_86590/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 2 |
||||
|
number 2 passed check: truefdai7760@pc06:~$ |
||||
|
|
||||
|
# Nach setzen des "Breakpoints" |
||||
|
|
||||
|
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: truefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_24e96/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 10 |
||||
|
input: 10, Schleifenvariable: 2, Ergebnis 0 |
||||
|
number 10 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_24e96/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 15 |
||||
|
input: 15, Schleifenvariable: 2, Ergebnis 1 |
||||
|
input: 15, Schleifenvariable: 3, Ergebnis 0 |
||||
|
number 15 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_24e96/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung1 |
||||
|
enter an integer number: 2 |
||||
|
number 2 passed check: truefdai7760@pc06:~$ |
||||
|
|
||||
|
# Zahl 45 im Debug-Mode |
||||
|
|
||||
|
enter an integer number: 45 |
||||
|
input: 45, Schleifenvariable: 2, Ergebnis 1 |
||||
|
input: 45, Schleifenvariable: 3, Ergebnis 0 |
||||
|
number 45 passed check: falsefdai7760@pc06:~$ |
||||
|
|
||||
|
# Zahl 47 im Debug-Mode |
||||
|
|
||||
|
enter an integer number: 47 |
||||
|
input: 47, Schleifenvariable: 2, Ergebnis 1 |
||||
|
input: 47, Schleifenvariable: 3, Ergebnis 2 |
||||
|
input: 47, Schleifenvariable: 4, Ergebnis 3 |
||||
|
|
||||
|
|
||||
|
### Uebung2 |
||||
|
|
||||
|
# Irgendwelche Zahlen |
||||
|
|
||||
|
enter an integer number: 5 |
||||
|
number 5 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_e36ba/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung2 |
||||
|
enter an integer number: 10 |
||||
|
number 10 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_e36ba/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung2 |
||||
|
enter an integer number: 15 |
||||
|
number 15 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_e36ba/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung2 |
||||
|
enter an integer number: 2 |
||||
|
number 2 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_e36ba/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung2 |
||||
|
enter an integer number: 50 |
||||
|
number 50 passed check: falsefdai7760@pc06:~$ /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /tmp/vscodesws_e36ba/jdt_ws/jdt.ls-java-project/bin de.edu.hsfulda.pmut.debugging.Uebung2 |
||||
|
enter an integer number: 1 |
||||
|
number 1 passed check: truefdai7760@pc06:~$ |
||||
|
|
||||
|
# Zahl 45 im Debug-Mode |
||||
|
|
||||
|
enter an integer number: 45 |
||||
|
number 45 passed check: falsefdai7760@pc06:~$ |
||||
|
nextInt: 23 |
||||
|
nextInt: 16 |
||||
|
|
||||
|
Wir haben 3 Einträge im Debug-view: |
||||
|
1. checkNumber(int) |
||||
|
2. run() |
||||
|
3. main(String[]) |
||||
|
|
||||
|
Der Debugger steht in Zeile 40 |
||||
|
|
||||
|
Nun sind 4 Einträge im Debug-view: |
||||
|
|
||||
|
1. checkNumber(int) |
||||
|
2. checkNumber(int) |
||||
|
3. run() |
||||
|
4. main(String[]) |
||||
|
|
||||
|
Der Debugger steht in Zeile 34 |
||||
|
|
||||
|
Nun sind 5 Einträge im Debug-view: |
||||
|
|
||||
|
1. checkNumber(int) |
||||
|
2. checkNumber(int) |
||||
|
3. checkNumber(int) |
||||
|
4. run() |
||||
|
5. main(String[]) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue