delve/_fixtures/testenv.go
Alessandro Arzilli f29b9edad2 proc/gdbserial: pass environment variables to target (#820)
debugserver requires a special option to forward the environment to the target.

Fixes #818
2017-05-04 10:46:45 -07:00

14 lines
146 B
Go

package main
import (
"fmt"
"os"
"runtime"
)
func main() {
x := os.Getenv("SOMEVAR")
runtime.Breakpoint()
fmt.Printf("SOMEVAR=%s\n", x)
}