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

macOS's native backend doesn't work #1112

Open
dlsniper opened this issue Feb 1, 2018 · 5 comments
Open

macOS's native backend doesn't work #1112

dlsniper opened this issue Feb 1, 2018 · 5 comments

Comments

@dlsniper
Copy link
Contributor

dlsniper commented Feb 1, 2018

  1. What version of Delve are you using (dlv version)?
    00e4731
  2. What version of Go are you using? (go version)?
    Go 1.9.3
  3. What operating system and processor architecture are you using?
    OSX 10.13.3 / amd64
  4. What did you do?
    Debugged this app:
package main

import (
    "time"
    "fmt"
)

func main() {
    o, ok := time.ParseInLocation("2006-01-02 15:04:05", "2017-10-29 00:01:49", time.Local)
    o = o.Local()
    t, ok := time.ParseInLocation("2006-01-02 15:04:05", "2017-10-30 00:01:49", time.Local)
    if ok != nil {
        fmt.Printf("Could not parse")
    } else {
        fmt.Printf("Now in nano : %d ", t.UnixNano())
    }
    t = t.Local()
    n := time.Unix(0, t.UnixNano())
    fmt.Printf("Original : %s, Converted back : %s\n", t.Format(time.RFC3339Nano), n.Format(time.RFC3339Nano))
    if ok != nil {
        fmt.Printf("Failed to parse time, cannot compute: %v", ok)
    }
}
  1. What did you expect to see?
    The debugger working
  2. What did you see instead?
could not launch process: could not get thread count

Debugger finished with exit code 1

Additional information

ls -l /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver
rwxr-xr-x  1 root  admin  4778272 17 nov 09:48 /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver
Pingus-2:opushserver charlus$ /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver
debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-900.0.64
 for x86_64.
Usage:
  debugserver host:port [program-name program-arg1 program-arg2 ...]
  debugserver /path/file [program-name program-arg1 program-arg2 ...]
  debugserver host:port –attach=<pid>
  debugserver /path/file –attach=<pid>
  debugserver host:port –attach=<process_name>
  debugserver /path/file –attach=<process_name>

Originally reported at https://youtrack.jetbrains.com/issue/GO-5305

@aarzilli
Copy link
Member

aarzilli commented Feb 1, 2018

The native backend was never fixed.

@dlsniper
Copy link
Contributor Author

dlsniper commented Feb 1, 2018

Oh, I see. Could we rename / alias this from native to delve instead? It's still confusing for me which is which without checking the code. I'll update the issue on GoLand's side. Thank you for the quick reply.

@aarzilli
Copy link
Member

aarzilli commented Feb 1, 2018

default is already aliased to the "right" backend on all platforms.

@aarzilli aarzilli changed the title could not get thread count - strikes again macOS's native backend doesn't work Mar 3, 2018
@xrfinbupt
Copy link

xrfinbupt commented May 18, 2019

disable goland use native backend box,it works
image

#1555

@KScaesar
Copy link

KScaesar commented Jul 11, 2024

I have the same problem
Unable to resolve...
goland debug issue

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

Successfully merging a pull request may close this issue.

4 participants