1
0
mirror of https://github.com/beego/bee.git synced 2024-11-15 13:40:54 +00:00
bee/vendor/github.com/go-delve/delve/service/debugger/debugger_darwin.go
2019-04-15 16:43:01 +02:00

16 lines
286 B
Go

package debugger
import (
"fmt"
sys "golang.org/x/sys/unix"
)
func attachErrorMessage(pid int, err error) error {
//TODO: mention certificates?
return fmt.Errorf("could not attach to pid %d: %s", pid, err)
}
func stopProcess(pid int) error {
return sys.Kill(pid, sys.SIGSTOP)
}