You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug is in your code. Calling go log.Fatal(http.ListenAndServe(":8080", nil)) is the same as:
err:=http.ListenAndServe(":8080", nil) // blocks the goroutinegolog.Fatal(err)
You are only calling log.Fatal in another goroutine. The evaluation of the arguments (in this case your http.ListenAndServe call) still happens in the calling goroutine, which in your case is the main goroutine. This blocks your main goroutine including the debugger.
Hello,
I'm trying debug code like this:
but it stop at line
any one help me?
The text was updated successfully, but these errors were encountered: