Skip to content

Commit

Permalink
fix: pass absolute paths to the Starlark Debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
tpasternak committed Oct 13, 2024
1 parent 017e063 commit 175890b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.google.devtools.build.lib.starlarkdebugging.StarlarkDebuggingProtos.SetBreakpointsRequest;
import com.google.devtools.build.lib.starlarkdebugging.StarlarkDebuggingProtos.StartDebuggingRequest;
import com.google.devtools.build.lib.starlarkdebugging.StarlarkDebuggingProtos.Stepping;
import com.google.idea.blaze.base.model.primitives.WorkspaceRoot;
import com.intellij.execution.ExecutionResult;
import com.intellij.execution.process.ProcessAdapter;
import com.intellij.execution.process.ProcessEvent;
Expand Down Expand Up @@ -269,7 +270,7 @@ private Location convertLocation(XLineBreakpoint<XBreakpointProperties> breakpoi
// TODO(brendandouglas): handle local changes?
return Location.newBuilder()
.setLineNumber(breakpoint.getLine() + 1)
.setPath(breakpoint.getPresentableFilePath())
.setPath(WorkspaceRoot.fromProject(project).absolutePathFor(breakpoint.getPresentableFilePath()).toString())
.build();
}

Expand Down

0 comments on commit 175890b

Please sign in to comment.