Commit 916b80f1 authored by Benedikt Engeser's avatar Benedikt Engeser

Off-by-one bug beim setzten von breakpoints gefixed

parent 544980c1
......@@ -69,9 +69,15 @@ public class Debugger {
*/
return line;
}
FindNextCodeBlockLineVisitor v = new FindNextCodeBlockLineVisitor(line);
/*
* Eclipse's internal representation starts counting lines with 0, we do start with 1
*/
FindNextCodeBlockLineVisitor v = new FindNextCodeBlockLineVisitor(line+1);
astModel.accept(v, null);
return v.getResult();
/*
* convert from our to eclipse'S view on line-numbers
*/
return v.getResult()-1;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment