mirror of
https://github.com/go-delve/delve.git
synced 2025-10-26 19:46:03 +08:00
* service/debugger: fix FindLocation with child processes FindLocation should only return a "location not found" error if none of the attached target processes can find the location. Fixes #3933 * terminal/command: bind if condition to location earlier Fix the problem that "if condition" is not bound to breakpoint when the location is not found. See command_test.go for the use case. The overview of the testcase is to test whether a condition is bound to a breakpoint whose location is not found yet. * replace range expression for backward compatibility * delete redundant cond variable * mocking yesno * service/test: fix BuildFixture argument --------- Co-authored-by: aarzilli <alessandro.arzilli@gmail.com>
15 lines
179 B
Go
15 lines
179 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func traceme5() {
|
|
fmt.Println("hello world")
|
|
}
|
|
|
|
func main() {
|
|
for i := 0; i < 3; i++ {
|
|
println(i) // b spawnchild.go:11 if i == 1
|
|
}
|
|
traceme5()
|
|
}
|