Skip to content
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

[WSL] Debugger throwing errors - Command failed...$(uname) was unexpected at this time #3150

Closed
HayashiEsme opened this issue Feb 11, 2019 · 7 comments
Assignees
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available.

Comments

@HayashiEsme
Copy link

HayashiEsme commented Feb 11, 2019

Type: Debugger
Input information below

There seems to be similar issues with gdb, but I'm definitely never seen this issue before.
image

Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.

Describe the bug

  • OS and Version: Windows 10, Version 1709; Ubuntu 18.04

  • VS Code Version: 1.31.0 (on Windows)

  • C/C++ Extension Version: 0.21.0

  • Not really sure why clicking debug gives me this error. Thought I sat on the keyboard or something but as far as I've checked, don't think it's an issue on my end

To Reproduce
This is only a section of config.json. There's some configs from the Perl Debugger there too. Just attach debuggers for local and remote debugging. Of note is that that debugger isn't quite working properly either - the yellow line showing where the debugger is in the code, and the stuff in inspect isn't quite showing all. Doing the same thing on my version of VSCode on Mac is having it work fine. (This ended up being a different, separate issue that I fixed)
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Bash on Windows Attach",
"type": "cppdbg",
"request": "attach",
"program": "/mnt/z/sgsxeris006/limxuan/Personal_Workspace/Scratch_Files/intellis", //i edited
"processId": "${command:pickRemoteProcess}",
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "${env:windir}\sysnative\bash.exe",
"pipeArgs": ["-c"],
"pipeCwd": ""
},
"windows": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"sourceFileMap": {
"/mnt/z": "z:\"
}
},

Steps to reproduce the behavior:

  1. Honestly all I did was to config with the settings stated in here
  2. Clicked run, and this came up.

Additional context
Can't get any log files, or debug errors - cause there are none, just that one popup. Wondering if it's similar to the issues in #2870 and microsoft/WSL#3679

Any help would be great, thanks!

@pieandcakes
Copy link
Contributor

@WardenGnaw can you look into this?

@pieandcakes pieandcakes added debugger investigate: repro This issue's repro steps needs to be investigated/confirmed labels Feb 13, 2019
@flxflx
Copy link

flxflx commented Feb 14, 2019

Same problem here; same software versions except for Ubuntu being 16.04.

@flxflx
Copy link

flxflx commented Feb 14, 2019

The problem seems to be with "processId":"${command:pickRemoteProcess}". Specifying the PID directly solved this for me.

@WardenGnaw WardenGnaw added fixed Check the Milestone for the release in which the fix is or will be available. and removed investigate: repro This issue's repro steps needs to be investigated/confirmed labels Feb 20, 2019
@sean-mcmanus
Copy link
Collaborator

Should be fixed with the latest insiders: https://github.com/Microsoft/vscode-cpptools/releases

@rakesh-mth
Copy link

rakesh-mth commented Mar 7, 2019

It is not fixed for me even after switch to version 0.22.0-insiders2. Still have to use pid instead.

image

@WardenGnaw
Copy link
Member

@rakesh-mth This issue was for the WSL scenario and has been resolved. Can you open a new issue and specify your host (Since you are using plink, it should be Windows) and remote machine OS?

@rakesh-mth
Copy link

@WardenGnaw Sure will open another issue. Host is windows 10 1803 and Remote machine is ubuntu 16.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger fixed Check the Milestone for the release in which the fix is or will be available.
Projects
None yet
Development

No branches or pull requests

6 participants