mirror of
https://github.com/Example-uPagge/debugger.git
synced 2024-06-14 11:22:32 +03:00
Добавил примеры для дебага
This commit is contained in:
parent
e9e07c29a8
commit
ab68afd7a8
@ -7,13 +7,18 @@ public class FooService {
|
|||||||
|
|
||||||
public void example() {
|
public void example() {
|
||||||
for (int i = 0; i < 1000; i++) {
|
for (int i = 0; i < 1000; i++) {
|
||||||
|
testMethod(i);
|
||||||
SurpriseBox.surpriseOne(i);
|
SurpriseBox.surpriseOne(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// try {
|
private void testMethod(int i) {
|
||||||
// SurpriseBox.surpriseOne(i);
|
if (i == 100) {
|
||||||
// } catch (SurpriseException e) {
|
try {
|
||||||
// System.err.println(e.getMessage());
|
throw new SurpriseException("Упс");
|
||||||
// }
|
} catch (SurpriseException e) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user