
The trace command line subcommand ignored the regexp argument when the traced process was specified using the '-p' option. Fixes #2023
23 lines
222 B
Go
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++
|
|
}
|
|
}
|