Skip to content

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

@EsmeAioli

Description

@EsmeAioli

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!

Metadata

Metadata

Assignees

Labels

debuggerfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions