Home >Backend Development >Golang >GoLang debugging operation method
The following tutorial column will introduce you to the goLang debugging operation method. I hope it will be helpful to friends in need! I went to a studygoLang today and found that the blog wanted to include an article. Not a bad start.
Then I found someone posted a debug thing. I honestly don't know where this stuff came from. Do not understand.
You can only find it yourself. I found his github address later.
go get github.com/mailgun/godebug go install github.com/mailgun/godebug
After the installation is completed. Run the godebug command to see if
package main import ( "fmt" ) func main() { _ = "brakpoint" x := "debugger" debug_funtion(x) debug_value_save(x) fmt.Println(x) } func debug_funtion(x string) { fmt.Printf("x=,%s!\n", x) } func debug_value_save(x string) { x = "sssss" fmt.Printf("goodbye,%s!\n", x) }
has written some code. But if you run it with godebug, you will have one more debugger, and I don’t understand how this thing works.
Try it out later. More to add.
The above is the detailed content of GoLang debugging operation method. For more information, please follow other related articles on the PHP Chinese website!