Skip to content

debug: shifts focus to proc.go when stepping to next line during remote debugging #1647

@debevv

Description

@debevv

Hi, I was redirected here after posting the issue on the vscode repository (microsoft/vscode#129356)

I'm experiencing the same problem explained in issue microsoft/vscode#65920, but only when remote debugging an ARM64 target

Environment

  • Ubuntu 20.04 x64
  • vscode 1.58.2 c3f1263
  • go1.16.5 linux/amd64
  • delve 1.7.0 and 1.6.0
  • gopls v0.7.0
  • vscode-go v0.26.0

Steps to reproduce

  • Create the same main.go used in the referenced issue
package main

import (
    "fmt"
    "time"
)

func main() {
    for {
        fmt.Println("Hello, World!")
        time.Sleep(2 * time.Second)
    }
}
  • Build and copy the program on the remote target, then start delve server
HOST="[email protected]"

GO111MODULE=off GOOS=linux GOARCH=arm64 go build -o repr .

scp ./repr $HOST:/usr/bin

ssh $HOST "dlv --headless --listen=:2345 --log --api-version=2 --accept-multiclient exec /usr/bin/repr"
  • Start debugging using the following launch configuration:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "remote debug",
            "type": "go",
            "request": "attach",
            "mode": "remote",
            "remotePath": "",
            "port": 2345,
            "host": "192.168.1.26",
            "cwd": "${workspaceFolder}",
        }
    ]
}

I attached all the files needed to reproduce the problem (you'll need an ARM64 target, though)

Metadata

Metadata

Assignees

Labels

DebugIssues related to the debugging functionality of the extension.DuplicateMake it obvious when issues are closed as duplicateFrozenDueToAgedebug/legacylegacy debug adapter related issues - new issues won't be fixed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions