Skip to content

Cannot launch a debugging session on Ubuntu 23.04 #35

Description

@kyselejsyrecek

The extension is unable to start a debugging session on Ubuntu 23.04. When launching the session, an error window pops up in bottom-right corner of VS Code, reading that /bin/bash failed to launch. The following error message then appears in the Output Window:

[error] [Extension Host] stderr: agent-proxy: žádný proces nenalezen

(In English: no process found)

I have tried launching the debugging session without and with agent-proxy downloaded from Linux kernel website and linked to ${workspaceFolder}/agent-proxy with a symbolic link with the same result. I am using the latest version of this extension, but behaviour of the experimental version is the same.

image
image

Configuration from launch.json:

    {
      "name": "KGDB: remote kernel debugging (serial console)",
      "type": "cppdbg", // required for GDB and LLDB
      "request": "launch", // attach to running Linux kernel
      "program": "${workspaceFolder}/rpm/${input:targetPlatform}/BUILD/linux/vmlinux",
      "preLaunchTask": "${command:embeddedLinuxDev.breakKernel}",
      "cwd": "${workspaceFolder}",
      "MIMode": "gdb", 
      "setupCommands": [
        {
          "description": "Set path to source files",
          "text": "set dir ${workspaceFolder}/linux",
          "ignoreFailures": false
        },
        {
          "description": "Connect to target machine.",
          "text": "target remote localhost:${config:kerneldev.serial_port}",
          "ignoreFailures": false
        }
      ],
      "miDebuggerPath": "gdb-multiarch"
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions