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

Debugger stops at breakpoint in a loop only once (Windows Arm64) #3183

Open
sergunya opened this issue Nov 7, 2022 · 7 comments
Open

Debugger stops at breakpoint in a loop only once (Windows Arm64) #3183

sergunya opened this issue Nov 7, 2022 · 7 comments

Comments

@sergunya
Copy link

sergunya commented Nov 7, 2022

1. dlv version

Delve Debugger
Version: 1.9.1
Build: $Id: d81b9fd12bfa603f3cf7a4bc842398bd61c42940 $

2. go version
go version go1.19.3 windows/arm64

3. Operating system and processor architecture

Edition	       Windows 11 Pro
Version	       22H2
OS build	       22621.521
System type  64-bit operating system, ARM-based processor

6. Steps to reproduce

  • Install delve for Windows arm64 go install -tags exp.winarm64 github.com/go-delve/delve/cmd/dlv

  • Create sample.go file with the outlined below content
    `package main

    import (
    "fmt"
    )

    func main() {
    length, capacity, y := 1000, 2000, 3
    AllResults := make([]int, length, capacity)
    for i := 0; i < length; i++ {
    result := i / y // Hi there
    fmt.Println(result)
    AllResults[i] = result
    }
    j := 0
    fmt.Println(j)
    }`

  • Start debug client: dlv debug sample.go

  • Add breakpoint inside loop: (dlv) break sample.go:12

  • Continue debug session (dlv) continue (debugger stops at breakpoint)

  • Continue debug session further (dlv) continue

7. Expected result
The debugger stops at the breakpoint in every cycle in a loop.

8. Actual result
The debugger stops at the breakpoint only in first cycle of the loop.

example

@sergunya sergunya changed the title Debugger stops at breakpoint in a loop only one (Windows Arm64) Debugger stops at breakpoint in a loop only once (Windows Arm64) Nov 7, 2022
@aarzilli
Copy link
Member

aarzilli commented Nov 7, 2022

cc @qmuntal

@sergunya
Copy link
Author

sergunya commented Nov 7, 2022

Also step action doesn't work. Should I create a separate issue or we can continue with this ticket?

@aarzilli
Copy link
Member

aarzilli commented Nov 7, 2022

I think it's fine to continue here.

@qmuntal
Copy link
Contributor

qmuntal commented Nov 9, 2022

Thanks for reporting this issue. I'll investigate it next week.

@qmuntal
Copy link
Contributor

qmuntal commented Nov 13, 2022

Which version of go are you using @sergunya? Can't reproduce this issue with go version go1.19.2 windows/arm64.

@sergunya
Copy link
Author

@qmuntal hey,
go version go1.19.3 windows/arm64

@qmuntal
Copy link
Contributor

qmuntal commented Nov 16, 2022

I'm afraid I can't reproduce this locally. I do have an OS build slightly newer than yours (22621.819), but I doubt it matters here.

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

No branches or pull requests

3 participants