delve/_fixtures/locationsprog3.go
Alessandro Arzilli 6e882c50fa debugger/locations: prioritize exact matches of function names (#651)
If the location specification matches the name of a function exactly
return that function as a match event if the expression matches other
functions as well.

Without this some functions, like math/rand.Intn are unmatchable.
2016-10-21 22:04:03 -07:00

13 lines
123 B
Go

package main
import (
"fmt"
"math/rand"
"runtime"
)
func main() {
runtime.Breakpoint()
fmt.Println(rand.Intn(10))
}