github.com/undoio/delve@v1.9.0/service/debugger/debugger_darwin.go (about)

     1  package debugger
     2  
     3  import (
     4  	"fmt"
     5  	sys "golang.org/x/sys/unix"
     6  )
     7  
     8  func attachErrorMessage(pid int, err error) error {
     9  	//TODO: mention certificates?
    10  	return fmt.Errorf("could not attach to pid %d: %s", pid, err)
    11  }
    12  
    13  func stopProcess(pid int) error {
    14  	return sys.Kill(pid, sys.SIGSTOP)
    15  }