Guest User

Untitled

a guest
Feb 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # テストするためのソースコードを置くディレクトリを作成する
  2. mkdir debugtest
  3. cd debugtest
  4. vi main.go
  5.  
  6. package main
  7. import "fmt"
  8. func main() {
  9. fmt.Println("hello world")
  10. }
  11.  
  12. dlv debug -l 0.0.0.0:2345 --headless --log
  13.  
  14. dlv connect 127.0.0.1:2345
  15.  
  16. # ex.
  17. dlv debug ./main.go -l 0.0.0.0:2345 --headless --log
  18. dlv debug -l 127.0.0.1:2345 --headless --log
  19. dlv debug -l 0.0.0.0:2345 --headless --log
  20. dlv debug -l=":2345" --headless --log
  21.  
  22. $ dlv connect 127.0.0.1:2345
  23. (dlv)
Add Comment
Please, Sign In to add comment