mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
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)
|
|
}
|