-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote Debugging: Unable to list processes from Windows #6729
Comments
@AlexandrStarov To work around this bug, open the referenced script (c:\Users\aleksandr.starov.vscode\extensions\ms-dotnettools.csharp-2.13.10-win32-x64\scripts\remoteProcessPickerScript) and change the file from |
The change to produce the Windows .vsix files on a Windows machine exposed the fact that we didn't have a .gitattributes entry in this repo to force the process listing script to use LF line endings, thus breaking remote process listing from Windows. This fixes #6729
@gregg-miskelly Thanks for the quick fix and suggested workaround!
|
@AlexandrStarov What that error means is that nothing installed vsdbg to whatever path your launch.json indicated it is installed at ( |
Unfortunately it didn't help me. I have found another similar bug #1369 |
Environment data
dotnet 6
VS Code version: 1.85
C# Extension version: 2.13.10
OmniSharp log
Steps to reproduce
Expected behavior
It is possible to attach to the selected project
Actual behavior
Can't debug application in the docker container.
Error:
Executing: docker exec -i DataProcessor sh -c "sh -s" < "c:\Users\aleksandr.starov.vscode\extensions\ms-dotnettools.csharp-2.13.10-win32-x64\scripts\remoteProcessPickerScript"
stderr: sh: 30: Syntax error: "}" unexpected (expecting "then")
Error Message: Command failed: docker exec -i DataProcessor sh -c "sh -s" < "c:\Users\aleksandr.starov.vscode\extensions\ms-dotnettools.csharp-2.13.10-win32-x64\scripts\remoteProcessPickerScript"
sh: 30: Syntax error: "}" unexpected (expecting "then")
Additional context
Config
{
"name": "DataProcessor Remote Debug (.NET Core)",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickRemoteProcess}",
"pipeTransport": {
"pipeProgram": "docker",
"pipeArgs": [
"exec",
"-i",
"DataProcessor",
"sh",
"-c"
],
"debuggerPath": "~/vsdbg/vsdbg",
"pipeCwd": "${workspaceFolder}",
"quoteArgs": true
},
"sourceFileMap": {
"/app": "${workspaceFolder}/modules/DataProcessor"
},
"justMyCode": true
}
The text was updated successfully, but these errors were encountered: