delve/_fixtures/issue2023.go
chainhelen 04a0891913
cmd/dlv: do not ignore regex when tracing pid (#2069)
The trace command line subcommand ignored the regexp argument
when the traced process was specified using the '-p' option.

Fixes #2023
2020-06-02 12:07:03 -07:00

23 lines
222 B
Go

package main
import (
"fmt"
"time"
)
func A() {
fmt.Printf("hello delve\n")
}
func main() {
count := 0
for {
A()
time.Sleep(time.Millisecond * time.Duration(100))
if count >= 30 {
break
}
count++
}
}