--- a/org.chromium.debug.core/src/org/chromium/debug/core/model/StackFrame.java Mon Jun 07 16:33:07 2010 -0700
+++ b/org.chromium.debug.core/src/org/chromium/debug/core/model/StackFrame.java Mon Jun 07 16:51:19 2010 -0700
@@ -201,7 +201,14 @@
}
public int getLineNumber() throws DebugException {
- return getDebugTarget().getLineNumber(stackFrame);
+ // convert 0-based to 1-based
+ int inScriptLine = stackFrame.getLineNumber() + 1;
+ Script script = stackFrame.getScript();
+ if (script != null) {
+ return inScriptLine + script.getStartLine();
+ } else {
+ return inScriptLine;
+ }
}
public int getCharStart() throws DebugException {