vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Windows/Remote SSH: Source location resolved wrong (\? prefix)

Open knopp opened this issue 3 years ago • 3 comments

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: Version: 1.69.0-insider (Universal) Commit: 92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9 Date: 2022-07-05T18:34:55.771Z (2 days ago)
  • OS Version: macOS 12.4

Connect to windows using SSH extension Attach to process either using the Microsoft C++ Extension or CodeLLDB Verify that symbols are loaded properly:

Screenshot 2022-07-07 at 21 34 42

When stopped on breakpoint, VSCode will try to find file in \?\C:\Users.... instead of C:\Users....

Screenshot 2022-07-07 at 21 35 49

knopp avatar Jul 07 '22 19:07 knopp

Persists with Version: 1.70.0-insider Commit: 3104db414c8fedcf6e4493f14da7df0b7413853a Date: 2022-07-08T05:16:50.422Z (1 hr ago)

knopp avatar Jul 08 '22 07:07 knopp

Also note that I had to add the breakpoint with just function name (setting breakpoint in file editor will set the breakpoint wrong)

knopp avatar Jul 08 '22 07:07 knopp

I don't think this is specific to vscode remote. It seems to be a related with source file inside PDB being referenced using UNC path, i.e. \\?\C:\Users\matej\Projects\. This doesn't seem to be handled correctly by vscode.

knopp avatar Jul 29 '22 14:07 knopp

It seems like this is related to the debug extension you're using. Please file the issue there.

roblourens avatar Dec 17 '22 02:12 roblourens