dotnet / dotnet/vscode-csharp

Debugger cannot find the local file

Open
#4,024 1 comment 0 reactions 0 assignees View on GitHub
Debugger OmniSharp Question Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

Hi,

I am having issues remote debugging a service under Docker, I can add breakpoints and I can see on the logs that VS is receiving the local variables and all information, In fact, I can see the local variables on the left menu. The issue though is VS is failing to display the current line in the file.

I am getting the following error:

```
Unable to open 'SearcherService.cs': Unable to read file '/app/Services/SearcherService.cs' (Error: Unable to resolve non-existing file '/app/Services/SearcherService.cs').
```

I am not sure where this path is coming from `/app/Services/` but it is definitely now where my local files are.

OSX host VS
Service running on docker using Ubuntu 16.04

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.