jdb should step OVER calls in current line when next is applied.
Currently, if there is a breakpoint inside the function that we are about to step
OVER with 'next', then jdb stops at the that brkpoint, but it should not.
class Class {
String clsName;
private int callsNum;
Class(String _str) {
clsName = _str;
callsNum = 0;
}
public int CallClass(int _iter) {
for (int i = 0;i < _iter;i++) {
int value = StepInMethod(0);
System.out.println("StepInMethod return: " + value);
System.out.println("Next done.");
}
return 0;
}
private int StepInMethod(int callsNum) {
if (callsNum < 100) {
return StepInMethod(++callsNum);
} else {
return callsNum;
}
}
public static void main(String args[]) {
Class cl = new Class("New Class");
cl.CallClass(10);
}
}
Steps:
stop at Class:12
stop at Class:19
run Class
next
Currently, if there is a breakpoint inside the function that we are about to step
OVER with 'next', then jdb stops at the that brkpoint, but it should not.
class Class {
String clsName;
private int callsNum;
Class(String _str) {
clsName = _str;
callsNum = 0;
}
public int CallClass(int _iter) {
for (int i = 0;i < _iter;i++) {
int value = StepInMethod(0);
System.out.println("StepInMethod return: " + value);
System.out.println("Next done.");
}
return 0;
}
private int StepInMethod(int callsNum) {
if (callsNum < 100) {
return StepInMethod(++callsNum);
} else {
return callsNum;
}
}
public static void main(String args[]) {
Class cl = new Class("New Class");
cl.CallClass(10);
}
}
Steps:
stop at Class:12
stop at Class:19
run Class
next