Commit 228e3f81 authored by Benedikt Engeser's avatar Benedikt Engeser
Browse files

automapping

parent afd95918
...@@ -57,7 +57,7 @@ public class GetDebuggerMappingVisitor extends Visitor<Object> ...@@ -57,7 +57,7 @@ public class GetDebuggerMappingVisitor extends Visitor<Object>
if (range != null) { if (range != null) {
for (int line : lines) { for (int line : lines) {
if (line >= node.getBegin().getLine() && if (line >= node.getBegin().getLine() &&
line >= node.getEnd().getLine()) line <= node.getEnd().getLine())
{ {
int lineOffset = line - node.getBegin().getLine(); int lineOffset = line - node.getBegin().getLine();
mappings.add(new Mapping(node.getDebugId(), lineOffset)); mappings.add(new Mapping(node.getDebugId(), lineOffset));
......
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