Files
delve/_fixtures/spawnchild.go
Qingwei Li b0e68ce801 terminal/command: bind if condition to location earlier (#3938)
* 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>
2025-03-17 10:46:57 -07:00

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()
}