
debugserver requires a special option to forward the environment to the target. Fixes #818
14 lines
146 B
Go
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)
|
|
}
|