vscode-remote-release
vscode-remote-release copied to clipboard
Debug console shows incorrect slashes in paths when using Windows but SSH to Ubuntu
Hello!
I'm using Windows 11 with VSCode. But using Remote-SSH to my ubuntu server. When running Firefox Debug extension and launching a debug session and looking inside the Debug console i see the errors and files. Firefox transforms the urls to paths and sends them to vscode. I have checked the code inside firefox debug extension, and it returns correct urls.
However, it seems that VSCode when showing the info inside the debug extension changes /srv/http/myfile.txt to \srv\http\myfile.txt and clicking on it says file not found. Im guessing it is because im developing on Windows, but the code is on my remote SSH server using linux.
launch.json
{
"configurations": [
{
"name": "Launch Firefox (inside backend)",
"type": "firefox",
"request": "launch",
"reAttach": true,
"url": "https://dev-net.test.se:3000",
"webRoot": "/srv/http/dev-test-prisma/frontend/src",
"firefoxExecutable": "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
"profileDir": "C:\\Users\\test\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\test.default-release",
"clearConsoleOnReload": true,
"skipFiles": [
"<node_internals>/**",
"**/node_modules/**",
"**/@vue/**",
"**/runtime-core/**",
"**/runtime-dom/**",
"**/.pnpm/**"
],
"pathMappings": [
{
"url": "https://dev-net.test.se:3000/_nuxt/@fs/srv/http/dev-test-prisma/frontend/src/",
"path": "/srv/http/dev-test-prisma/frontend/src/"
},
{
"url": "https://dev-net.test.se:3000/_nuxt/@fs/srv/http/dev-test-prisma/frontend/node_modules/",
"path": "/srv/http/dev-test-prisma/frontend/node_modules/"
},
{
"url": "/@fs/srv/http/dev-test-prisma/frontend/src/",
"path": "/srv/http/dev-test-prisma/frontend/src/"
},
{
"url": "https://dev-net.test.se:3000/_nuxt/",
"path": "/srv/http/dev-test-prisma/frontend/src/"
}
]
}
]
}